class Papa::Task::Integration::Add

Public Class Methods

new(version, branches) click to toggle source
Calls superclass method Papa::Task::Common::Add::new
# File lib/papa/task/integration/add.rb, line 7
def initialize(version, branches)
  @build_type = 'integration'
  @version = version
  @branches = branches
  super()
end

Public Instance Methods

queue(branch) click to toggle source
# File lib/papa/task/integration/add.rb, line 14
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