Method: Management::Server::Run#run_remote_command

Defined in:
lib/management/commands/server/run.rb

#run_remote_command(server, cmd) ⇒ Object

returns error code



83
84
85
86
# File 'lib/management/commands/server/run.rb', line 83

def run_remote_command(server, cmd)
  result = server.ssh("#{cmd}").first
  return result.status
end