Class: TinyCI::Hookers::ScriptHooker

Inherits:
Executor
  • Object
show all
Defined in:
lib/tinyci/hookers/script_hooker.rb

Constant Summary collapse

HOOKS =

All the hooks

%w{
  before_build
  
  after_build
  after_build_success
  after_build_failure
  
  before_test
  
  after_test
  after_test_success
  after_test_failure
}
BLOCKING_HOOKS =

Those hooks that will halt exectution if they fail

%w{
  before_build
  before_test
}

Instance Method Summary collapse

Methods inherited from Executor

#initialize

Methods included from Subprocesses

#execute, #execute_pipe, #execute_stream

Constructor Details

This class inherits a constructor from TinyCI::Executor

Instance Method Details

#script_location(hook) ⇒ Object



54
55
56
# File 'lib/tinyci/hookers/script_hooker.rb', line 54

def script_location(hook)
  ['/bin/sh', '-c', "'#{@config[hook.to_sym]}'"]
end