Sha256: bed4ebb00e46602cd482a266ef9070de079fd368ca6155c544d5c97ede06f33f
Contents?: true
Size: 492 Bytes
Versions: 14
Compression:
Stored size: 492 Bytes
Contents
module DevFlow class Cleanup < App def process! completed_branches = Array.new @roadmap.tasks.each {|t| completed_branches << t.branch_name if t.is_completed?} @git.branches.each do |t| if completed_branches.include? t print "delete completed branch #{t}? [Y/n]:" ans = STDIN.gets.chomp! unless ans == 'n' `git branch -d #{t}` end end end end end # class end
Version data entries
14 entries across 14 versions & 1 rubygems