Method: Configure#do_remote_command
- Defined in:
- lib/maws/commands/configure.rb
#do_remote_command(ssh, instance, name, command) ⇒ Object
136 137 138 139 140 141 142 143 144 145 |
# File 'lib/maws/commands/configure.rb', line 136 def do_remote_command(ssh, instance, name, command) if name ensure_output :info, " executing #{name} command: " + command else ensure_output :info, " executing #{command}" end result = ssh.exec!(command) ensure_output :info, result if result end |