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

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

#exitstatusObject (readonly)

Returns the value of attribute exitstatus.



354
355
356
# File 'lib/buildr/core/util.rb', line 354

def exitstatus
  @exitstatus
end

#pidObject (readonly)

Returns the value of attribute pid.



354
355
356
# File 'lib/buildr/core/util.rb', line 354

def pid
  @pid
end

#stopsigObject (readonly)

Returns the value of attribute stopsig.



354
355
356
# File 'lib/buildr/core/util.rb', line 354

def stopsig
  @stopsig
end

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

Returns:

  • (Boolean)


377
378
379
# File 'lib/buildr/core/util.rb', line 377

def coredump?
  false
end

#exited?Boolean

Returns:

  • (Boolean)


381
382
383
# File 'lib/buildr/core/util.rb', line 381

def exited?
  true
end

#stopped?Boolean

Returns:

  • (Boolean)


385
386
387
# File 'lib/buildr/core/util.rb', line 385

def stopped?
  false
end

#success?Boolean

Returns:

  • (Boolean)


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

def success?
  @success
end

#to_iObject



393
394
395
# File 'lib/buildr/core/util.rb', line 393

def to_i
  pid
end

#to_intObject



397
398
399
# File 'lib/buildr/core/util.rb', line 397

def to_int
  pid
end

#to_sObject



401
402
403
# File 'lib/buildr/core/util.rb', line 401

def to_s
  pid.to_s
end