Method: Gloo::Objs::SshExec#msg_run
- Defined in:
- lib/gloo/objs/system/ssh_exec.rb
#msg_run ⇒ Object
SSH to the host and execute the command, then update result.
73 74 75 76 77 78 79 80 81 82 83 84 |
# File 'lib/gloo/objs/system/ssh_exec.rb', line 73 def msg_run h = host_value unless h @engine.err HOST_REQUIRED_ERR return end Net::SSH.start( h ) do |ssh| result = ssh.exec!( cmd_value ) update_result result end end |