2011-06-23 18:11:55 -04:00
|
|
|
module Rake
|
|
|
|
|
|
|
|
####################################################################
|
|
|
|
# Exit status class for times the system just gives us a nil.
|
|
|
|
class PseudoStatus
|
|
|
|
attr_reader :exitstatus
|
2013-10-11 17:35:01 -04:00
|
|
|
|
2011-06-23 18:11:55 -04:00
|
|
|
def initialize(code=0)
|
|
|
|
@exitstatus = code
|
|
|
|
end
|
2013-10-11 17:35:01 -04:00
|
|
|
|
2011-06-23 18:11:55 -04:00
|
|
|
def to_i
|
|
|
|
@exitstatus << 8
|
|
|
|
end
|
2013-10-11 17:35:01 -04:00
|
|
|
|
2011-06-23 18:11:55 -04:00
|
|
|
def >>(n)
|
|
|
|
to_i >> n
|
|
|
|
end
|
2013-10-11 17:35:01 -04:00
|
|
|
|
2011-06-23 18:11:55 -04:00
|
|
|
def stopped?
|
|
|
|
false
|
|
|
|
end
|
2013-10-11 17:35:01 -04:00
|
|
|
|
2011-06-23 18:11:55 -04:00
|
|
|
def exited?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|