Class: GitHelper::NewBranch
- Inherits:
-
Object
- Object
- GitHelper::NewBranch
- Defined in:
- lib/git_helper/new_branch.rb
Instance Method Summary collapse
Instance Method Details
#execute(new_branch_name = nil) ⇒ Object
3 4 5 6 7 |
# File 'lib/git_helper/new_branch.rb', line 3 def execute(new_branch_name = nil) branch_name = new_branch_name || GitHelper::HighlineCli.new.new_branch_name puts "Attempting to create a new branch: #{branch_name}" GitHelper::LocalCode.new.new_branch(branch_name) end |