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.
10 11 12 13 14 15 16 |
# File 'lib/kamal_backup/errors.rb', line 10 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.
8 9 10 |
# File 'lib/kamal_backup/errors.rb', line 8 def command @command end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
8 9 10 |
# File 'lib/kamal_backup/errors.rb', line 8 def status @status end |
#stderr ⇒ Object (readonly)
Returns the value of attribute stderr.
8 9 10 |
# File 'lib/kamal_backup/errors.rb', line 8 def stderr @stderr end |
#stdout ⇒ Object (readonly)
Returns the value of attribute stdout.
8 9 10 |
# File 'lib/kamal_backup/errors.rb', line 8 def stdout @stdout end |