Method: Toolshed::Commands::SSH#execute
- Defined in:
- lib/toolshed/commands/ssh.rb
#execute(args, options = {}) ⇒ Object
47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/toolshed/commands/ssh.rb', line 47 def execute(args, = {}) Toolshed.logger.info "Running ssh command with options #{options.inspect}" unless [:verbose_output].nil? || [:verbose_output].empty? # rubocop:disable Metrics/LineLength begin ssh = Toolshed::ServerAdministration::SSH.new() ssh.execute rescue => e Toolshed.logger.fatal e. Toolshed.logger.fatal "Unable to connect to #{options[:host]}" Toolshed.die end end |