Class: Toolshed::Commands::SSH
- Inherits:
-
Object
- Object
- Toolshed::Commands::SSH
- Defined in:
- lib/toolshed/commands/ssh.rb
Instance Method Summary collapse
Instance Method Details
#execute(args, options = {}) ⇒ Object
4 5 6 7 8 9 10 11 12 13 |
# File 'lib/toolshed/commands/ssh.rb', line 4 def execute(args, = {}) puts "running ssh command with options #{.inspect}" unless [:verbose_output].blank? begin ssh = Toolshed::ServerAdministration::SSH.new() ssh.execute rescue => e puts e.inspect puts "Unable to connect to #{[:host]}" end end |