Class: Toolshed::Commands::SSH

Inherits:
Object
  • Object
show all
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, options = {})
  puts "running ssh command with options #{options.inspect}" unless options[:verbose_output].blank?
  begin
    ssh = Toolshed::ServerAdministration::SSH.new(options)
    ssh.execute
  rescue => e
    puts e.inspect
    puts "Unable to connect to #{options[:host]}"
  end
end