class Milestoner::Tags::Publisher

Handles the tagging and pushing of a tag to a remote repository.

Attributes

container[R]
pusher[R]
tagger[R]

Public Class Methods

new(tagger: Tags::Creator.new, pusher: Tags::Pusher.new, container: Container) click to toggle source
# File lib/milestoner/tags/publisher.rb, line 7
def initialize tagger: Tags::Creator.new, pusher: Tags::Pusher.new, container: Container
  @tagger = tagger
  @pusher = pusher
  @container = container
end

Public Instance Methods

call(configuration = CLI::Configuration::Loader.call) click to toggle source
# File lib/milestoner/tags/publisher.rb, line 13
def call configuration = CLI::Configuration::Loader.call
  tagger.call configuration
  pusher.call configuration
  logger.info { "Published: #{configuration.git_tag_version}!" }
end

Private Instance Methods

logger(= container[__method__]) click to toggle source
# File lib/milestoner/tags/publisher.rb, line 23
  def logger = container[__method__]
end