Class: Versi::GenerateCommand
- Inherits:
-
Clamp::Command
- Object
- Clamp::Command
- Versi::GenerateCommand
- Defined in:
- lib/versi/generate_command.rb,
lib/versi/generate_command/interactors/push_git_tag.rb,
lib/versi/generate_command/interactors/generate_release.rb,
lib/versi/generate_command/interactors/build_release_tag.rb,
lib/versi/generate_command/interactors/build_local_git_tag.rb,
lib/versi/generate_command/interactors/extract_release_type_from_commit_message.rb
Defined Under Namespace
Classes: Interactors
Instance Method Summary collapse
Instance Method Details
#execute ⇒ Object
12 13 14 15 16 17 18 19 20 21 22 23 24 |
# File 'lib/versi/generate_command.rb', line 12 def execute validate if debug? context = Versi::GenerateCommand::Interactors::BuildReleaseTag.call(options: ) Versi::LOG.info("No tag will be created, because we are in debug mode") else context = Versi::GenerateCommand::Interactors::GenerateCommandRelease.call(options: ) end if context.error raise context.error end end |