Sha256: 6bd508274bb62a76801fc9f367a0742c509feb8528878f5a76cc3052fbf3aed3
Contents?: true
Size: 605 Bytes
Versions: 14
Compression:
Stored size: 605 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 info "prune git remote (delete zoombie remote refs)" `git remote prune #{@config["git_remote"]}` end end # class end
Version data entries
14 entries across 14 versions & 1 rubygems