Class: Mj::Git::ThorCommand

Inherits:
Thor
  • Object
show all
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: options)
  handler = Commands::CheckoutCommandHandler.new(stdout: $stdout)
  handler.handle(command)
end

#delete_stale_branchesObject



49
50
51
52
53
# File 'lib/mj/git/thor_command.rb', line 49

def delete_stale_branches
  command = Commands::DeleteStaleBranchesCommand.new(options: options)
  handler = Commands::DeleteStaleBranchesCommandHandler.new(stdout: $stdout)
  handler.handle(command)
end