Sha256: 5eaccb3a18dacfabfabd3a8451c4a7a3ca1ad3a9a0fb21d9700774e9e77e8ea7

Contents?: true

Size: 795 Bytes

Versions: 4

Compression:

Stored size: 795 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::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

4 entries across 4 versions & 1 rubygems

Version Path
papa-1.1.0 lib/papa/task/integration/add.rb
papa-1.0.0 lib/papa/task/integration/add.rb
papa-0.7.2 lib/papa/task/integration/add.rb
papa-0.7.1 lib/papa/task/integration/add.rb