Sha256: b5fa6a02f7cc1e591d51628b0d1bfc6f5f5a9f9679ea0ef797052d64b5c59cfd

Contents?: true

Size: 809 Bytes

Versions: 4

Compression:

Stored size: 809 Bytes

Contents

require 'papa/task/base'
require 'papa/command/git/branch'
require 'papa/command/git/push'

module Papa
  module Task
    module Common
      class Start < Base
        private

        def queue
          [
            Command::Git::Fetch.new('origin'),
            Command::Git::Checkout.new(@base_branch),
            Command::Git::Branch.new(build_branch),
            Command::Git::Checkout.new(build_branch),
            Command::Git::Push.new('origin', build_branch)
          ]
        end

        def success_message
          Helper::Output.success "Successfully started new #{@build_type} branch #{build_branch}"
        end

        def failure_message
          Helper::Output.failure "There was a problem starting #{@build_type} branch: #{build_branch}"
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
papa-1.0.0 lib/papa/task/common/start.rb
papa-0.7.2 lib/papa/task/common/start.rb
papa-0.7.1 lib/papa/task/common/start.rb
papa-0.7.0 lib/papa/task/common/start.rb