Class: Buildr::ProcessStatus

Inherits:
Object
  • Object
show all
Defined in:
lib/buildr/core/util.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

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

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



388
389
390
# File 'lib/buildr/core/util.rb', line 388

def exitstatus
  @exitstatus
end

#pidObject (readonly)

Returns the value of attribute pid.



388
389
390
# File 'lib/buildr/core/util.rb', line 388

def pid
  @pid
end

#stopsigObject (readonly)

Returns the value of attribute stopsig.



388
389
390
# File 'lib/buildr/core/util.rb', line 388

def stopsig
  @stopsig
end

#termsigObject (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_iObject



427
428
429
# File 'lib/buildr/core/util.rb', line 427

def to_i
  pid
end

#to_intObject



431
432
433
# File 'lib/buildr/core/util.rb', line 431

def to_int
  pid
end

#to_sObject



435
436
437
# File 'lib/buildr/core/util.rb', line 435

def to_s
  pid.to_s
end