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
390 391 392 393 394 395 396 397 |
# File 'lib/buildr/core/util.rb', line 390 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.
388 389 390 |
# File 'lib/buildr/core/util.rb', line 388 def exitstatus @exitstatus end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
388 389 390 |
# File 'lib/buildr/core/util.rb', line 388 def pid @pid end |
#stopsig ⇒ Object (readonly)
Returns the value of attribute stopsig.
388 389 390 |
# File 'lib/buildr/core/util.rb', line 388 def stopsig @stopsig end |
#termsig ⇒ Object (readonly)
Returns the value of attribute termsig.
388 389 390 |
# File 'lib/buildr/core/util.rb', line 388 def termsig @termsig end |
Instance Method Details
#&(num) ⇒ Object
399 400 401 |
# File 'lib/buildr/core/util.rb', line 399 def &(num) pid & num end |
#==(other) ⇒ Object
403 404 405 |
# File 'lib/buildr/core/util.rb', line 403 def ==(other) pid == other.pid end |
#>>(num) ⇒ Object
407 408 409 |
# File 'lib/buildr/core/util.rb', line 407 def >>(num) pid >> num end |
#coredump? ⇒ Boolean
411 412 413 |
# File 'lib/buildr/core/util.rb', line 411 def coredump? false end |
#exited? ⇒ Boolean
415 416 417 |
# File 'lib/buildr/core/util.rb', line 415 def exited? true end |
#stopped? ⇒ Boolean
419 420 421 |
# File 'lib/buildr/core/util.rb', line 419 def stopped? false end |
#success? ⇒ Boolean
423 424 425 |
# File 'lib/buildr/core/util.rb', line 423 def success? @success end |
#to_i ⇒ Object
427 428 429 |
# File 'lib/buildr/core/util.rb', line 427 def to_i pid end |
#to_int ⇒ Object
431 432 433 |
# File 'lib/buildr/core/util.rb', line 431 def to_int pid end |
#to_s ⇒ Object
435 436 437 |
# File 'lib/buildr/core/util.rb', line 435 def to_s pid.to_s end |