Sha256: 90129f8e8db50d006d22ff9b0b8773aa634153e9fdf530431f6186263193184a

Contents?: true

Size: 452 Bytes

Versions: 31

Compression:

Stored size: 452 Bytes

Contents

# frozen_string_literal: true

module Milestoner
  # Handles the tagging and pushing of a milestone to a remote repository.
  class Publisher
    def initialize tagger: Tagger.new, pusher: Pusher.new
      @tagger = tagger
      @pusher = pusher
    end

    # :reek:BooleanParameter
    def publish version, sign: false
      tagger.create version, sign: sign
      pusher.push version
    end

    private

    attr_reader :tagger, :pusher
  end
end

Version data entries

31 entries across 31 versions & 1 rubygems

Version Path
milestoner-11.2.0 lib/milestoner/publisher.rb
milestoner-11.1.1 lib/milestoner/publisher.rb
milestoner-11.1.0 lib/milestoner/publisher.rb
milestoner-11.0.0 lib/milestoner/publisher.rb
milestoner-10.4.0 lib/milestoner/publisher.rb
milestoner-10.3.0 lib/milestoner/publisher.rb
milestoner-10.2.0 lib/milestoner/publisher.rb
milestoner-10.1.0 lib/milestoner/publisher.rb
milestoner-10.0.2 lib/milestoner/publisher.rb
milestoner-10.0.1 lib/milestoner/publisher.rb
milestoner-10.0.0 lib/milestoner/publisher.rb
milestoner-9.3.3 lib/milestoner/publisher.rb
milestoner-9.3.2 lib/milestoner/publisher.rb
milestoner-9.3.1 lib/milestoner/publisher.rb
milestoner-9.3.0 lib/milestoner/publisher.rb
milestoner-9.2.1 lib/milestoner/publisher.rb
milestoner-9.2.0 lib/milestoner/publisher.rb
milestoner-9.1.0 lib/milestoner/publisher.rb
milestoner-9.0.0 lib/milestoner/publisher.rb
milestoner-8.3.0 lib/milestoner/publisher.rb