Class: Versi::BranchCommand::Interactors::BuildReleaseBranchName
- Inherits:
-
Object
- Object
- Versi::BranchCommand::Interactors::BuildReleaseBranchName
- Includes:
- RescueInteractor
- Defined in:
- lib/versi/branch_command/interactors/build_release_branch_name.rb
Constant Summary collapse
- DEFAULT_BRANCH_PREFIX =
"release"
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
13 14 15 16 17 18 19 20 21 |
# 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 |