Sha256: b7528d2b2f588ba36ac1b4de49ac3f289398359038da4cc4363b3a48d1db5358
Contents?: true
Size: 1.22 KB
Versions: 54
Compression:
Stored size: 1.22 KB
Contents
require 'big_keeper/model/gitflow_type' module BigKeeper # Operator for gitflow class GitflowOperator def start(path, name, type) Dir.chdir(path) do gitflow_type_name = GitflowType.name(type) `git flow #{gitflow_type_name} start #{name}` end end def verify_git_flow_command has_git_flow_command = false IO.popen('command -v git-flow') do |io| io.each do |line| has_git_flow_command = true end end has_git_flow_command end def verify_git_flow(path) has_git_flow = false Dir.chdir(path) do clear_flag = 'Already initialized for gitflow' IO.popen('git flow init -d') do |io| io.each do |line| if line.include? clear_flag has_git_flow = true break end end end end has_git_flow end def finish_release(path, release_name) Dir.chdir(path) do p `git checkout master` p `git merge release/#{release_name}` p `git push` p `git checkout develop` p `git merge release/#{release_name}` p `git push` p `git branch -d release/#{release_name}` end end end end
Version data entries
54 entries across 54 versions & 4 rubygems