Class: TrelloFlow::Cleanup

Inherits:
Object
  • Object
show all
Defined in:
lib/trello_flow/cleanup.rb

Instance Method Summary collapse

Constructor Details

#initialize(target) ⇒ Cleanup

Returns a new instance of Cleanup.



3
4
5
# File 'lib/trello_flow/cleanup.rb', line 3

def initialize(target)
  @target = target
end

Instance Method Details

#runObject



7
8
9
10
11
12
13
# File 'lib/trello_flow/cleanup.rb', line 7

def run
  Cli.title "Cleaning merged story branches for [#{target}]"
  update_remotes
  remove_fully_merged_local_branches
  remove_fully_merged_remote_branches
  Cli.success "Deleted branches merged with [#{target}]"
end