Class: ObjectiveCommand::Runners::Runner::FailureHooker
- Includes:
- Hooker
- Defined in:
- lib/objective_command/runners/runner.rb
Defined Under Namespace
Classes: Error
Instance Method Summary collapse
Methods included from Hooker
Instance Method Details
#failure(aCommand, data) ⇒ Object
200 201 202 203 204 |
# File 'lib/objective_command/runners/runner.rb', line 200 def failure ( aCommand, data ) raise Error, { 'reason' => 'Command failed', 'command' => aCommand.to_s, 'data' => data }.to_yaml end |