Sha256: f73b0cd7ded6c71342dd0d08cf02806ffed934d2797c96c3da79e41fc9861b00

Contents?: true

Size: 344 Bytes

Versions: 13

Compression:

Stored size: 344 Bytes

Contents

# frozen_string_literal: true

module GitHelper
  class NewBranch
    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
  end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
git_helper-3.6.6 lib/git_helper/new_branch.rb
git_helper-3.6.5 lib/git_helper/new_branch.rb
git_helper-3.6.4 lib/git_helper/new_branch.rb
git_helper-3.6.3 lib/git_helper/new_branch.rb
git_helper-3.6.2 lib/git_helper/new_branch.rb
git_helper-3.6.1 lib/git_helper/new_branch.rb
git_helper-3.6.0 lib/git_helper/new_branch.rb
git_helper-3.5.1 lib/git_helper/new_branch.rb
git_helper-3.5.0 lib/git_helper/new_branch.rb
git_helper-3.4.1 lib/git_helper/new_branch.rb
git_helper-3.4.0 lib/git_helper/new_branch.rb
git_helper-3.3.7 lib/git_helper/new_branch.rb
git_helper-3.3.6 lib/git_helper/new_branch.rb