Class: ObjectiveCommand::Runners::Runner::FailureHooker

Inherits:
Object
  • Object
show all
Includes:
Hooker
Defined in:
lib/objective_command/runners/runner.rb

Defined Under Namespace

Classes: Error

Instance Method Summary collapse

Methods included from Hooker

#hook_method

Instance Method Details

#failure(aCommand, data) ⇒ Object

Raises:



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