Module: Maxwell::Agent::Probe::ClassMethods
- Defined in:
- lib/maxwell/agent/probe.rb
Instance Method Summary collapse
Instance Method Details
#call_handler(probe) ⇒ Object
25 26 27 |
# File 'lib/maxwell/agent/probe.rb', line 25 def call_handler(probe) probe.handle if probe.respond_to?(:handle) end |
#instance(*args) ⇒ Object
19 20 21 22 23 |
# File 'lib/maxwell/agent/probe.rb', line 19 def instance(*args) instance = new instance.args = args instance end |
#perform(*args) ⇒ Object
13 14 15 16 17 |
# File 'lib/maxwell/agent/probe.rb', line 13 def perform(*args) probe = instance(*args) probe.output = probe.perform(*args) call_handler(probe) end |