summaryrefslogtreecommitdiff
path: root/lib/rake/pseudo_status.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rake/pseudo_status.rb')
-rw-r--r--lib/rake/pseudo_status.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/lib/rake/pseudo_status.rb b/lib/rake/pseudo_status.rb
index b58df3d..09d5c88 100644
--- a/lib/rake/pseudo_status.rb
+++ b/lib/rake/pseudo_status.rb
@@ -4,18 +4,23 @@ module Rake
# Exit status class for times the system just gives us a nil.
class PseudoStatus
attr_reader :exitstatus
+
def initialize(code=0)
@exitstatus = code
end
+
def to_i
@exitstatus << 8
end
+
def >>(n)
to_i >> n
end
+
def stopped?
false
end
+
def exited?
true
end