Sha256: b39b046ec63cb60433f5adb9a6b9886f5fc7a864beb74422af5e72b8b46d461f
Contents?: true
Size: 373 Bytes
Versions: 5
Compression:
Stored size: 373 Bytes
Contents
class Pipeline < ApplicationRecord belongs_to :project, optional: true has_many :jobs def definition_class @definition_class ||= definition.constantize end def status?(is) status && status.upcase == is.to_s.upcase end def run(event=nil) PipelineRunnerJob.perform_later(self, event) end def event @event ||= Event.new(super) end end
Version data entries
5 entries across 5 versions & 1 rubygems