Exception: Kdeploy::SSHError
- Defined in:
- lib/kdeploy/errors.rb
Overview
Raised when SSH operation fails
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#exit_status ⇒ Object
readonly
Returns the value of attribute exit_status.
-
#original_error ⇒ Object
readonly
Returns the value of attribute original_error.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(message, original_error = nil, command: nil, exit_status: nil, stdout: nil, stderr: nil) ⇒ SSHError
constructor
A new instance of SSHError.
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(, original_error = nil, command: nil, exit_status: nil, stdout: nil, stderr: nil) super("SSH operation failed: #{}") @original_error = original_error @command = command @exit_status = exit_status @stdout = stdout @stderr = stderr end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
32 33 34 |
# File 'lib/kdeploy/errors.rb', line 32 def command @command end |
#exit_status ⇒ Object (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_error ⇒ Object (readonly)
Returns the value of attribute original_error.
32 33 34 |
# File 'lib/kdeploy/errors.rb', line 32 def original_error @original_error end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
32 33 34 |
# File 'lib/kdeploy/errors.rb', line 32 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
32 33 34 |
# File 'lib/kdeploy/errors.rb', line 32 def stdout @stdout end |