lib/bait/phase.rb in bait-0.5.6 vs lib/bait/phase.rb in bait-0.5.9
- old
+ new
@@ -39,10 +39,11 @@
target.call(*args)
end
end
def execute_subprocess &block
- zerostatus = false
+ zerostatus = 'unknown'
+ block.call("\nExecuting #{@script}\n\n")
Open3.popen2e(@script) do |stdin, oe, wait_thr|
oe.each {|line| block.call(line) }
zerostatus = wait_thr.value.exitstatus == 0
end
rescue => ex