rake.d/vendor/drake-0.9.2.0.3.1/lib/rake/pseudo_status.rb
raw| 1 | module Rake |
| 2 | |
| 3 | #################################################################### |
| 4 | # Exit status class for times the system just gives us a nil. |
| 5 | class PseudoStatus |
| 6 | attr_reader :exitstatus |
| 7 | def initialize(code=0) |
| 8 | @exitstatus = code |
| 9 | end |
| 10 | def to_i |
| 11 | @exitstatus << 8 |
| 12 | end |
| 13 | def >>(n) |
| 14 | to_i >> n |
| 15 | end |
| 16 | def stopped? |
| 17 | false |
| 18 | end |
| 19 | def exited? |
| 20 | true |
| 21 | end |
| 22 | end |
| 23 | |
| 24 | end |