class Greenletters::ExitTrigger
Monkey patch GreenLetters so that we can optionally ignore the exist status using the :any pattern.
Public Instance Methods
call(process)
click to toggle source
# File lib/rake/extensions.rb, line 71 def call(process) if process.status then if pattern == :any then @block.call(process, process.status) true elsif pattern === process.status.exitstatus @block.call(process, process.status) true else false end else false end end