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
5 6 7 8 9 |
# File 'lib/git_helper/new_branch.rb', line 5 def execute(new_branch_name = nil) branch_name = new_branch_name || HighlineWrapper.new.ask('New branch name?', { required: true }) puts "Attempting to create a new branch: #{branch_name}" GitHelper::LocalCode.new.new_branch(branch_name) end |