2011-06-23 22:11:55 +00:00
|
|
|
module Rake
|
|
|
|
|
2014-07-15 03:07:37 +00:00
|
|
|
##
|
2011-06-23 22:11:55 +00:00
|
|
|
# Exit status class for times the system just gives us a nil.
|
2014-07-15 03:07:37 +00:00
|
|
|
class PseudoStatus # :nodoc: all
|
2011-06-23 22:11:55 +00:00
|
|
|
attr_reader :exitstatus
|
2013-10-11 21:35:01 +00:00
|
|
|
|
2011-06-23 22:11:55 +00:00
|
|
|
def initialize(code=0)
|
|
|
|
@exitstatus = code
|
|
|
|
end
|
2013-10-11 21:35:01 +00:00
|
|
|
|
2011-06-23 22:11:55 +00:00
|
|
|
def to_i
|
|
|
|
@exitstatus << 8
|
|
|
|
end
|
2013-10-11 21:35:01 +00:00
|
|
|
|
2011-06-23 22:11:55 +00:00
|
|
|
def >>(n)
|
|
|
|
to_i >> n
|
|
|
|
end
|
2013-10-11 21:35:01 +00:00
|
|
|
|
2011-06-23 22:11:55 +00:00
|
|
|
def stopped?
|
|
|
|
false
|
|
|
|
end
|
2013-10-11 21:35:01 +00:00
|
|
|
|
2011-06-23 22:11:55 +00:00
|
|
|
def exited?
|
|
|
|
true
|
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
end
|