Method: Serverkit::Backends::BaseBackend#run_command
- Defined in:
- lib/serverkit/backends/base_backend.rb
#run_command(command) ⇒ Specinfra::CommandResult
33 34 35 36 37 38 39 40 |
# File 'lib/serverkit/backends/base_backend.rb', line 33 def run_command(command) logger.debug("Running #{command} on #{host}") specinfra_backend.run_command(command).tap do |result| logger.debug(result.stdout) unless result.stdout.empty? logger.debug(result.stderr) unless result.stderr.empty? logger.debug("Finished with #{result.exit_status} on #{host}") end end |