class BranchingCleaner::BranchRemover
Public Instance Methods
drop_current()
click to toggle source
# File lib/branching_cleaner/branch_remover.rb, line 5 def drop_current branch = current_branch drop_db(branch) GIT::switch_to_master_branch drop_branch(branch) end
Private Instance Methods
drop_branch(branch)
click to toggle source
# File lib/branching_cleaner/branch_remover.rb, line 18 def drop_branch(branch) GIT::drop_branch(branch) puts "Branch '#{branch}' removed" end
drop_db(branch)
click to toggle source
# File lib/branching_cleaner/branch_remover.rb, line 14 def drop_db(branch) BranchCleaner.new(branch).run end