Class: Cp8Cli::Cleanup
- Inherits:
-
Object
- Object
- Cp8Cli::Cleanup
- Defined in:
- lib/cp8_cli/cleanup.rb
Instance Method Summary collapse
-
#initialize(target) ⇒ Cleanup
constructor
A new instance of Cleanup.
- #run ⇒ Object
Constructor Details
#initialize(target) ⇒ Cleanup
3 4 5 |
# File 'lib/cp8_cli/cleanup.rb', line 3 def initialize(target) @target = target end |
Instance Method Details
#run ⇒ Object
7 8 9 10 11 12 13 |
# File 'lib/cp8_cli/cleanup.rb', line 7 def run Command.title "Cleaning merged story branches for [#{target}]" update_remotes remove_fully_merged_local_branches remove_fully_merged_remote_branches Command.success "Deleted branches merged with [#{target}]" end |