Class: Mysqlknife::SSH
- Inherits:
-
Object
- Object
- Mysqlknife::SSH
- Defined in:
- lib/mysqlknife/ssh.rb
Instance Method Summary collapse
- #execute(command) ⇒ Object
-
#initialize ⇒ SSH
constructor
A new instance of SSH.
Constructor Details
Instance Method Details
#execute(command) ⇒ Object
9 10 11 12 13 14 15 16 |
# File 'lib/mysqlknife/ssh.rb', line 9 def execute(command) %W[ssh -t -l #{@config.ssh[:user]} -i #{@config.ssh[:key]} #{@config.ssh[:host]} "#{command}"].join(' ') end |