Class: GitHelper::NewBranch

Inherits:
Object
  • Object
show all
Defined in:
lib/git_helper/new_branch.rb

Instance Method Summary collapse

Instance Method Details

#execute(new_branch_name = nil) ⇒ Object



6
7
8
9
10
# File 'lib/git_helper/new_branch.rb', line 6

def execute(new_branch_name = nil)
  branch_name = new_branch_name || cli.new_branch_name
  puts "Attempting to create a new branch: #{branch_name}"
  local_code.new_branch(branch_name)
end