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-0.0.1 | lib/octopolo/scripts/stage_up.rb |