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.
22 23 24 25 |
# File 'lib/philiprehberger/task_runner.rb', line 22 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.
20 21 22 |
# File 'lib/philiprehberger/task_runner.rb', line 20 def result @result end |