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