class Versi::BranchCommand::Interactors::CreateReleaseBranch

Public Instance Methods

call() click to toggle source
# File lib/versi/branch_command/interactors/create_release_branch.rb, line 11
def call
  @git.create_branch(context.branch_name)
end

Private Instance Methods

setup() click to toggle source
# File lib/versi/branch_command/interactors/create_release_branch.rb, line 17
def setup
  raise(ArgumentError, "Missing branch_name argument") if !context.branch_name
  @git = Versi::Interfaces::GitInterface.new
end