Method: Oxidized::Node#run
- Defined in:
- lib/oxidized/node.rb
#run ⇒ Object
33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 |
# File 'lib/oxidized/node.rb', line 33 def run status, config = :fail, nil @input.each do |input| # don't try input if model is missing config block, we may need strong config to class_name map cfg_name = input.to_s.split('::').last.downcase next unless @model.cfg[cfg_name] and not @model.cfg[cfg_name].empty? @model.input = input = input.new if config=run_input(input) status = :success break else status = :no_connection end end @model.input = nil [status, config] end |