Sha256: 8a29cd2b0c4a5aff6da7240e5271ceac3000d05db09d27759d467afd1e4e94ba

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

require_relative './common'
require_relative './buildstep/phase'
require_relative './buildstep/phase_job'

module JenkinsJob
  class MultiJob < Common::Common
    include BuildStep

    attr_reader :name, :builders_

    def initialize(name, builder)
      super(builder)
      @name = name
      @builders_ = []
    end

    def phase(name, &block)
      phase = Phase.new(name)
      phase.instance_eval(&block) if block

      @builders_ << phase
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rubyjobbuilderdsl-0.0.5 lib/rubyjobbuilderdsl/multijob.rb
rubyjobbuilderdsl-0.0.3 lib/rubyjobbuilderdsl/multijob.rb
rubyjobbuilderdsl-0.0.2 lib/rubyjobbuilderdsl/multijob.rb
rubyjobbuilderdsl-0.0.1 lib/rubyjobbuilderdsl/multijob.rb
rubyjobbuilderdsl-0.0.0 lib/rubyjobbuilderdsl/multijob.rb