Exception: KamalBackup::CommandError
- Defined in:
- lib/kamal_backup/errors.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
-
#stderr ⇒ Object
readonly
Returns the value of attribute stderr.
-
#stdout ⇒ Object
readonly
Returns the value of attribute stdout.
Instance Method Summary collapse
-
#initialize(message, command:, status: nil, stdout: "", stderr: "") ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(message, command:, status: nil, stdout: "", stderr: "") ⇒ CommandError
Returns a new instance of CommandError.
8 9 10 11 12 13 14 |
# File 'lib/kamal_backup/errors.rb', line 8 def initialize(, command:, status: nil, stdout: "", stderr: "") super() @command = command @status = status @stdout = stdout.to_s @stderr = stderr.to_s end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/kamal_backup/errors.rb', line 6 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/kamal_backup/errors.rb', line 6 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
6 7 8 |
# File 'lib/kamal_backup/errors.rb', line 6 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
6 7 8 |
# File 'lib/kamal_backup/errors.rb', line 6 def stdout @stdout end |