Exception: Philiprehberger::TaskRunner::CommandError
- Defined in:
- lib/philiprehberger/task_runner.rb
Overview
Raised by run! when the command exits with a non-zero status.
Instance Attribute Summary collapse
-
#result ⇒ Result
readonly
The failed command result.
Instance Method Summary collapse
-
#initialize(result) ⇒ CommandError
constructor
A new instance of CommandError.
Constructor Details
#initialize(result) ⇒ CommandError
Returns a new instance of CommandError.
19 20 21 22 |
# File 'lib/philiprehberger/task_runner.rb', line 19 def initialize(result) @result = result super("command exited with code #{result.exit_code}") end |
Instance Attribute Details
#result ⇒ Result (readonly)
Returns the failed command result.
17 18 19 |
# File 'lib/philiprehberger/task_runner.rb', line 17 def result @result end |