Exception: Appear::ExecutionFailure
- Defined in:
- lib/appear/runner.rb
Overview
raised when a command we want to run fails
Instance Attribute Summary collapse
-
#command ⇒ Object
readonly
Returns the value of attribute command.
-
#output ⇒ Object
readonly
Returns the value of attribute output.
Instance Method Summary collapse
-
#initialize(command, output) ⇒ ExecutionFailure
constructor
A new instance of ExecutionFailure.
Constructor Details
#initialize(command, output) ⇒ ExecutionFailure
Returns a new instance of ExecutionFailure.
11 12 13 14 15 |
# File 'lib/appear/runner.rb', line 11 def initialize(command, output) @command = command @output = output super("Command #{command.inspect} failed with output #{output.inspect}") end |
Instance Attribute Details
#command ⇒ Object (readonly)
Returns the value of attribute command.
10 11 12 |
# File 'lib/appear/runner.rb', line 10 def command @command end |
#output ⇒ Object (readonly)
Returns the value of attribute output.
10 11 12 |
# File 'lib/appear/runner.rb', line 10 def output @output end |