Sha256: bfe8cc4b73145bb56a816e084e3b55cc184ed7fb9281629b4bccd218d448c431
Contents?: true
Size: 632 Bytes
Versions: 8
Compression:
Stored size: 632 Bytes
Contents
# frozen_string_literal: true module Milestoner module Tags # Handles the tagging and pushing of a tag to a remote repository. class Publisher include Import[:logger] def initialize tagger: Tags::Creator.new, pusher: Tags::Pusher.new, **dependencies super(**dependencies) @tagger = tagger @pusher = pusher end def call configuration = Container[:configuration] tagger.call configuration pusher.call configuration logger.info { "Published: #{configuration.version}!" } end private attr_reader :tagger, :pusher end end end
Version data entries
8 entries across 8 versions & 1 rubygems