2011-06-23 18:11:55 -04:00
|
|
|
module Rake
|
|
|
|
|
2014-07-14 23:07:37 -04:00
|
|
|
##
|
2011-06-23 18:11:55 -04:00
|
|
|
# Exit status class for times the system just gives us a nil.
|
2014-07-14 23:07:37 -04:00
|
|
|
class PseudoStatus # :nodoc: all
|
2011-06-23 18:11:55 -04:00
|
|
|
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
|