class Paradeiser::Job
Constants
- JOB_PATTERN
Attributes
id[R]
Public Class Methods
new(id)
click to toggle source
# File lib/paradeiser/models/job.rb, line 9 def initialize(id) @id = id end
Public Instance Methods
==(other)
click to toggle source
# File lib/paradeiser/models/job.rb, line 13 def ==(other) id == other.id end
ours?()
click to toggle source
# File lib/paradeiser/models/job.rb, line 17 def ours? exec("#{at} -c #{@id}")[-2, 2].each do |line| if line return true if line.chomp.match(JOB_PATTERN) end end end