Class: Versi::GenerateCommand::Interactors::BuildLocalGitTag
- Inherits:
-
Object
- Object
- Versi::GenerateCommand::Interactors::BuildLocalGitTag
- Includes:
- RescueInteractor
- Defined in:
- lib/versi/generate_command/interactors/build_local_git_tag.rb
Instance Method Summary collapse
Instance Method Details
#call ⇒ Object
11 12 13 |
# File 'lib/versi/generate_command/interactors/build_local_git_tag.rb', line 11 def call @git.create_tag(context.release_tag.name, context.release_tag.) end |
#rollback ⇒ Object
15 16 17 18 19 20 21 22 |
# File 'lib/versi/generate_command/interactors/build_local_git_tag.rb', line 15 def rollback Versi::LOG.warn("Triggered rollback for the local git tag creation: #{context.release_tag.name}") if @git.delete_tag(context.release_tag.name) Versi::LOG.warn("Rollback was successful") else Versi::LOG.warn("There was an error on the rollback!") end end |