Class: Oxidized::Exec
Constant Summary
Constants inherited from Input
Instance Attribute Summary
Attributes included from Input::CLI
Instance Method Summary collapse
Methods inherited from Input
config_name, #config_name, rescue_fail, to_sym, #to_sym
Methods included from Input::CLI
#connect_cli, #disconnect_cli, #get, #initialize, #login, #newline, #password, #post_login, #pre_logout, #username
Methods included from Config::Vars
Instance Method Details
#cmd(cmd_str) ⇒ Object
8 9 10 11 12 13 |
# File 'lib/oxidized/input/exec.rb', line 8 def cmd(cmd_str) logger.debug "EXEC: #{cmd_str} @ #{@node.name}" # I'd really like to do popen3 with separate arguments, but that would # require refactoring cmd to take parameters %x(#{cmd_str}) end |
#connect(node) ⇒ Object
3 4 5 6 |
# File 'lib/oxidized/input/exec.rb', line 3 def connect(node) @node = node @node.model.cfg["exec"].each { |cb| instance_exec(&cb) } end |