Method: BigKeeper::GitflowOperator#verify_git_flow
- Defined in:
- lib/big_keeper/util/gitflow_operator.rb
#verify_git_flow(path) ⇒ Object
23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 |
# File 'lib/big_keeper/util/gitflow_operator.rb', line 23 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 |