class SSHake::ExecutionError

Attributes

response[R]

Public Class Methods

new(response) click to toggle source
# File lib/sshake/error.rb, line 10
def initialize(response)
  @response = response
end

Public Instance Methods

message() click to toggle source
# File lib/sshake/error.rb, line 20
def message
  "Failed to execute command: #{@response.command} " \
  "(stderr: #{@response.stderr}) (exit code: #{@response.exit_code})"
end
to_s() click to toggle source
# File lib/sshake/error.rb, line 16
def to_s
  message
end