class Versi::GenerateCommand::Interactors::PushGitTag
Public Instance Methods
call()
click to toggle source
# File lib/versi/generate_command/interactors/push_git_tag.rb, line 11 def call @git.push_tag(context.release_tag.name) end
rollback()
click to toggle source
# 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
Private Instance Methods
setup()
click to toggle source
# File lib/versi/generate_command/interactors/push_git_tag.rb, line 26 def setup raise(ArgumentError, "Missing release_tag argument") if !context.release_tag remote = context.options ? context.options[:remote] : nil @git = Versi::Interfaces::GitInterface.new(remote: remote) end