Class: Buildr::ProcessStatus
Instance Attribute Summary collapse
-
#exitstatus ⇒ Object
readonly
Returns the value of attribute exitstatus.
-
#pid ⇒ Object
readonly
Returns the value of attribute pid.
-
#stopsig ⇒ Object
readonly
Returns the value of attribute stopsig.
-
#termsig ⇒ Object
readonly
Returns the value of attribute termsig.
Instance Method Summary collapse
- #&(num) ⇒ Object
- #==(other) ⇒ Object
- #>>(num) ⇒ Object
- #coredump? ⇒ Boolean
- #exited? ⇒ Boolean
-
#initialize(pid, success, exitstatus) ⇒ ProcessStatus
constructor
A new instance of ProcessStatus.
- #stopped? ⇒ Boolean
- #success? ⇒ Boolean
- #to_i ⇒ Object
- #to_int ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(pid, success, exitstatus) ⇒ ProcessStatus
Returns a new instance of ProcessStatus.
356 357 358 359 360 361 362 363 |
# File 'lib/buildr/core/util.rb', line 356 def initialize(pid, success, exitstatus) @pid = pid @success = success @exitstatus = exitstatus @termsig = nil @stopsig = nil end |
Instance Attribute Details
#exitstatus ⇒ Object (readonly)
Returns the value of attribute exitstatus.
354 355 356 |
# File 'lib/buildr/core/util.rb', line 354 def exitstatus @exitstatus end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
354 355 356 |
# File 'lib/buildr/core/util.rb', line 354 def pid @pid end |
#stopsig ⇒ Object (readonly)
Returns the value of attribute stopsig.
354 355 356 |
# File 'lib/buildr/core/util.rb', line 354 def stopsig @stopsig end |
#termsig ⇒ Object (readonly)
Returns the value of attribute termsig.
354 355 356 |
# File 'lib/buildr/core/util.rb', line 354 def termsig @termsig end |
Instance Method Details
#&(num) ⇒ Object
365 366 367 |
# File 'lib/buildr/core/util.rb', line 365 def &(num) pid & num end |
#==(other) ⇒ Object
369 370 371 |
# File 'lib/buildr/core/util.rb', line 369 def ==(other) pid == other.pid end |
#>>(num) ⇒ Object
373 374 375 |
# File 'lib/buildr/core/util.rb', line 373 def >>(num) pid >> num end |
#coredump? ⇒ Boolean
377 378 379 |
# File 'lib/buildr/core/util.rb', line 377 def coredump? false end |
#exited? ⇒ Boolean
381 382 383 |
# File 'lib/buildr/core/util.rb', line 381 def exited? true end |
#stopped? ⇒ Boolean
385 386 387 |
# File 'lib/buildr/core/util.rb', line 385 def stopped? false end |
#success? ⇒ Boolean
389 390 391 |
# File 'lib/buildr/core/util.rb', line 389 def success? @success end |
#to_i ⇒ Object
393 394 395 |
# File 'lib/buildr/core/util.rb', line 393 def to_i pid end |
#to_int ⇒ Object
397 398 399 |
# File 'lib/buildr/core/util.rb', line 397 def to_int pid end |
#to_s ⇒ Object
401 402 403 |
# File 'lib/buildr/core/util.rb', line 401 def to_s pid.to_s end |