Exception: Giddyup::CommandWrapper::CommandFailed
- Inherits:
-
StandardError
- Object
- StandardError
- Giddyup::CommandWrapper::CommandFailed
- Defined in:
- lib/giddyup/command_wrapper.rb
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
-
#status ⇒ Object
readonly
Returns the value of attribute status.
Instance Method Summary collapse
-
#initialize(status, output, command) ⇒ CommandFailed
constructor
A new instance of CommandFailed.
Constructor Details
#initialize(status, output, command) ⇒ CommandFailed
Returns a new instance of CommandFailed.
15 16 17 18 19 20 |
# File 'lib/giddyup/command_wrapper.rb', line 15 def initialize(status, output, command) @status = status @output = output @command = command super("Command execution failed") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
13 14 15 |
# File 'lib/giddyup/command_wrapper.rb', line 13 def command @command end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
13 14 15 |
# File 'lib/giddyup/command_wrapper.rb', line 13 def output @output end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
13 14 15 |
# File 'lib/giddyup/command_wrapper.rb', line 13 def status @status end |