Method: Cnvrg::Ssh#exec_command
- Defined in:
- lib/cnvrg/ssh.rb
#exec_command(command) ⇒ Object
72 73 74 75 |
# File 'lib/cnvrg/ssh.rb', line 72 def exec_command(command) exec_command = "sudo -i -u #{@user} cnvrg exec_container #{@container} \"#{command}\" " return @ssh.exec!(exec_command) end |