Sha256: 09aa26e10df423d60eec155d4ca1f2fae211474df503f8b9987636849aa3a38a
Contents?: true
Size: 923 Bytes
Versions: 2
Compression:
Stored size: 923 Bytes
Contents
require 'rgitflow/tasks/task' module RGitFlow module Tasks class Release class Finish < RGitFlow::Tasks::Task def initialize(git) super(git, 'finish', 'Finish a release branch', ['rgitflow', 'release']) end protected def run status 'Finishing release branch...' branch = @git.current_branch unless branch.start_with? RGitFlow::Config.options[:release] error 'Cannot finish a release branch unless you are in a release branch' abort end @git.branch(RGitFlow::Config.options[:master]).checkout @git.merge branch @git.push if @git.is_remote_branch? branch @git.push('origin', branch, {:delete => true}) end @git.branch(branch).delete status "Finished release branch #{branch}!" end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
rgitflow-0.1.0.pre.alpha.pre.14 | lib/rgitflow/tasks/release/finish.rb |
rgitflow-0.1.0.pre.alpha.pre.13 | lib/rgitflow/tasks/release/finish.rb |