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.
300 301 302 303 304 305 306 307 |
# File 'lib/buildr/core/util.rb', line 300 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.
298 299 300 |
# File 'lib/buildr/core/util.rb', line 298 def exitstatus @exitstatus end |
#pid ⇒ Object (readonly)
Returns the value of attribute pid.
298 299 300 |
# File 'lib/buildr/core/util.rb', line 298 def pid @pid end |
#stopsig ⇒ Object (readonly)
Returns the value of attribute stopsig.
298 299 300 |
# File 'lib/buildr/core/util.rb', line 298 def stopsig @stopsig end |
#termsig ⇒ Object (readonly)
Returns the value of attribute termsig.
298 299 300 |
# File 'lib/buildr/core/util.rb', line 298 def termsig @termsig end |
Instance Method Details
#&(num) ⇒ Object
309 310 311 |
# File 'lib/buildr/core/util.rb', line 309 def &(num) pid & num end |
#==(other) ⇒ Object
313 314 315 |
# File 'lib/buildr/core/util.rb', line 313 def ==(other) pid == other.pid end |
#>>(num) ⇒ Object
317 318 319 |
# File 'lib/buildr/core/util.rb', line 317 def >>(num) pid >> num end |
#coredump? ⇒ Boolean
321 322 323 |
# File 'lib/buildr/core/util.rb', line 321 def coredump? false end |
#exited? ⇒ Boolean
325 326 327 |
# File 'lib/buildr/core/util.rb', line 325 def exited? true end |
#stopped? ⇒ Boolean
329 330 331 |
# File 'lib/buildr/core/util.rb', line 329 def stopped? false end |
#success? ⇒ Boolean
333 334 335 |
# File 'lib/buildr/core/util.rb', line 333 def success? @success end |
#to_i ⇒ Object
337 338 339 |
# File 'lib/buildr/core/util.rb', line 337 def to_i pid end |
#to_int ⇒ Object
341 342 343 |
# File 'lib/buildr/core/util.rb', line 341 def to_int pid end |
#to_s ⇒ Object
345 346 347 |
# File 'lib/buildr/core/util.rb', line 345 def to_s pid.to_s end |