Sha256: 65e451e9d50e80d09f64e839096920aa78a0c26d763bde823da757d2a5e9a2ab

Contents?: true

Size: 602 Bytes

Versions: 21

Compression:

Stored size: 602 Bytes

Contents

require_relative "../scripts"
require_relative "../pull_request_merger"

module Octopolo
  module Scripts
    class StageUp
      include CLIWrapper

      attr_accessor :pull_request_id

      def self.execute(pull_request_id=nil)
        new(pull_request_id).execute
      end

      def initialize(pull_request_id=nil)
        @pull_request_id = pull_request_id
      end

      # Public: Perform the script
      def execute
        self.pull_request_id ||= cli.prompt("Pull Request ID: ")
        PullRequestMerger.perform Git::STAGING_PREFIX, Integer(pull_request_id)
      end
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
octopolo-1.0.2 lib/octopolo/scripts/stage_up.rb
octopolo-1.0.1 lib/octopolo/scripts/stage_up.rb
octopolo-1.0.0 lib/octopolo/scripts/stage_up.rb
octopolo-0.4.1 lib/octopolo/scripts/stage_up.rb
octopolo-0.4.0 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.6 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.5 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.4 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.3 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.2 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.1 lib/octopolo/scripts/stage_up.rb
octopolo-0.3.0 lib/octopolo/scripts/stage_up.rb
octopolo-0.2.1 lib/octopolo/scripts/stage_up.rb
octopolo-0.1.4 lib/octopolo/scripts/stage_up.rb
octopolo-0.2.0 lib/octopolo/scripts/stage_up.rb
octopolo-0.1.3 lib/octopolo/scripts/stage_up.rb
octopolo-0.1.2 lib/octopolo/scripts/stage_up.rb
octopolo-0.1.1 lib/octopolo/scripts/stage_up.rb
octopolo-0.1.0 lib/octopolo/scripts/stage_up.rb
octopolo-0.0.2 lib/octopolo/scripts/stage_up.rb