Sha256: d996806cf361d17b8120bf89ea2a060dfa415be6317d5e6a5350592038bcde3f

Contents?: true

Size: 860 Bytes

Versions: 1

Compression:

Stored size: 860 Bytes

Contents

require 'papa/task/common/add'

module Papa
  module Task
    module Integration
      class Add < Common::Add
        def initialize(version, branches)
          @build_type = 'integration'
          @version = version
          @branches = branches
          super()
        end

        def queue(branch)
          [
            Command::Git::Checkout.new(build_branch),
            Command::Git::ResetHard.new('origin', build_branch),
            Command::Git::Checkout.new(branch),
            Command::Git::ResetHard.new('origin', branch),
            Command::Git::Rebase.new(build_branch),
            Command::Git::Checkout.new(build_branch),
            Command::Git::Merge.new(branch),
            Command::Git::BranchDelete.new(branch),
            Command::Git::Push.new('origin', build_branch)
          ]
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
papa-1.2.0 lib/papa/task/integration/add.rb