# File lib/sshkit/formatters/pretty.rb, line 35 def log_command_exit(command) runtime = sprintf('%5.3f seconds', command.runtime) successful_or_failed = command.failure? ? colorize('failed', :red, :bold) : colorize('successful', :green, :bold) message = "Finished in #{runtime} with exit status #{command.exit_status} (#{successful_or_failed})." write_message(command.verbosity, message, command.uuid) end