Exception: Hillary::Shellable::ExecutionError
- Inherits:
-
StandardError
- Object
- StandardError
- Hillary::Shellable::ExecutionError
- Defined in:
- lib/hillary/shellable.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(command, output, status) ⇒ ExecutionError
constructor
A new instance of ExecutionError.
Constructor Details
#initialize(command, output, status) ⇒ ExecutionError
Returns a new instance of ExecutionError.
8 9 10 11 12 13 14 15 16 17 18 |
# File 'lib/hillary/shellable.rb', line 8 def initialize(command, output, status) = "#{command}\n"\ "#{output}\n"\ "status: #{status}" super() @command = command @output = output @status = status end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
6 7 8 |
# File 'lib/hillary/shellable.rb', line 6 def command @command end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
6 7 8 |
# File 'lib/hillary/shellable.rb', line 6 def output @output end |
#status ⇒ Object (readonly)
Returns the value of attribute status.
6 7 8 |
# File 'lib/hillary/shellable.rb', line 6 def status @status end |