Class: Mj::Git::ThorCommand
- Inherits:
-
Thor
- Object
- Thor
- Mj::Git::ThorCommand
- Defined in:
- lib/mj/git/thor_command.rb
Instance Method Summary collapse
Instance Method Details
#checkout(branch) ⇒ Object
14 15 16 17 18 |
# File 'lib/mj/git/thor_command.rb', line 14 def checkout(branch) command = Commands::CheckoutCommand.new(branch: branch, options: ) handler = Commands::CheckoutCommandHandler.new(stdout: $stdout) handler.handle(command) end |
#delete_stale_branches ⇒ Object
49 50 51 52 53 |
# File 'lib/mj/git/thor_command.rb', line 49 def delete_stale_branches command = Commands::DeleteStaleBranchesCommand.new(options: ) handler = Commands::DeleteStaleBranchesCommandHandler.new(stdout: $stdout) handler.handle(command) end |