Sha256: db0e9e12525c70799430c5f11a6e94cae7c9ad77ec715ce6ec8482082aa97d46

Contents?: true

Size: 331 Bytes

Versions: 1

Compression:

Stored size: 331 Bytes

Contents

# frozen_string_literal: true

module GitHelper
  class NewBranch
    def execute(new_branch_name = nil)
      branch_name = new_branch_name || GitHelper::HighlineCli.new.ask('New branch name?')
      puts "Attempting to create a new branch: #{branch_name}"
      GitHelper::LocalCode.new.new_branch(branch_name)
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
git_helper-3.3.2 lib/git_helper/new_branch.rb