class Versi::BranchCommand::Interactors::BuildReleaseBranchName

Constants

DEFAULT_BRANCH_PREFIX

Public Instance Methods

call() click to toggle source
# File lib/versi/branch_command/interactors/build_release_branch_name.rb, line 13
def call
  branch_prefix = DEFAULT_BRANCH_PREFIX
  if context.release_name == Versi::Util::SemanticReleaseTypes::MAJOR
    branch_prefix = "major-release"
  end
  
  context.branch_name = "#{branch_prefix}/#{context.release_name}"
  Versi::LOG.info("The branch name will be #{context.branch_name}")
end

Private Instance Methods

setup() click to toggle source
# File lib/versi/branch_command/interactors/build_release_branch_name.rb, line 25
def setup
  raise(ArgumentError, "Missing options argument") if !context.options
  raise(ArgumentError, "Missing release_name argument") if !context.release_name
end