Method: Exec#run_hook
- Defined in:
- lib/oxidized/hook/exec.rb
#run_hook(ctx) ⇒ Object
31 32 33 34 35 36 37 38 39 40 41 42 |
# File 'lib/oxidized/hook/exec.rb', line 31 def run_hook ctx env = make_env ctx log "Execute: #{@cmd.inspect}", :debug th = Thread.new do begin run_cmd! env rescue => e raise e unless @async end end th.join unless @async end |