Exception: Kdeploy::SSHError

Inherits:
Error
  • Object
show all
Defined in:
lib/kdeploy/errors.rb

Overview

Raised when SSH operation fails

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(message, original_error = nil, command: nil, exit_status: nil, stdout: nil, stderr: nil) ⇒ SSHError

Returns a new instance of SSHError.



23
24
25
26
27
28
29
30
# File 'lib/kdeploy/errors.rb', line 23

def initialize(message, original_error = nil, command: nil, exit_status: nil, stdout: nil, stderr: nil)
  super("SSH operation failed: #{message}")
  @original_error = original_error
  @command = command
  @exit_status = exit_status
  @stdout = stdout
  @stderr = stderr
end

Instance Attribute Details

#commandObject (readonly)

Returns the value of attribute command.



32
33
34
# File 'lib/kdeploy/errors.rb', line 32

def command
  @command
end

#exit_statusObject (readonly)

Returns the value of attribute exit_status.



32
33
34
# File 'lib/kdeploy/errors.rb', line 32

def exit_status
  @exit_status
end

#original_errorObject (readonly)

Returns the value of attribute original_error.



32
33
34
# File 'lib/kdeploy/errors.rb', line 32

def original_error
  @original_error
end

#stderrObject (readonly)

Returns the value of attribute stderr.



32
33
34
# File 'lib/kdeploy/errors.rb', line 32

def stderr
  @stderr
end

#stdoutObject (readonly)

Returns the value of attribute stdout.



32
33
34
# File 'lib/kdeploy/errors.rb', line 32

def stdout
  @stdout
end