Sha256: 2a33e57700fafead23e5ee7a6344c1f8e43da9da3a77c9596b67b3bf3ecf0fc6

Contents?: true

Size: 450 Bytes

Versions: 3

Compression:

Stored size: 450 Bytes

Contents

# frozen_string_literal: true

module Milestoner
  # Handles publishing of Git tags to remote repository.
  class Pusher
    include Aids::Git

    def initialize kernel: Kernel
      @kernel = kernel
    end

    def push
      fail(Errors::Git) unless git_supported?
      fail(Errors::Git, "Git remote repository is not configured.") unless git_remote?
      kernel.system "git push --tags"
    end

    private

    attr_reader :kernel
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
milestoner-2.2.0 lib/milestoner/pusher.rb
milestoner-2.1.0 lib/milestoner/pusher.rb
milestoner-2.0.0 lib/milestoner/pusher.rb