Sha256: e30c48ea10567bd840903fd05ac1a2ca4cda08f28a87ce9b2d9bd8a3c61a4df1

Contents?: true

Size: 718 Bytes

Versions: 17

Compression:

Stored size: 718 Bytes

Contents

require 'r10k/git/ref'
require 'r10k/git/repository'

# tag: A ref under refs/tags/ namespace that points to an object of an
# arbitrary type (typically a tag points to either a tag or a commit object).
# In contrast to a head, a tag is not updated by the commit command. A tag is
# most typically used to mark a particular point in the commit ancestry chain.
#
# @see https://www.kernel.org/pub/software/scm/git/docs/gitglossary.html
# @api private
class R10K::Git::Tag < R10K::Git::Ref

  # @!attribute [r] tag
  #   @return [String] The git tag
  attr_reader :tag
  alias :ref :tag

  def initialize(tag, repository = nil)
    @tag = tag
    @repository = repository
  end

  def fetch?
    ! resolvable?
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
r10k-1.4.2 lib/r10k/git/tag.rb
r10k-1.4.1 lib/r10k/git/tag.rb
r10k-1.4.0 lib/r10k/git/tag.rb
r10k-1.3.5 lib/r10k/git/tag.rb
r10k-1.3.4 lib/r10k/git/tag.rb
r10k-1.2.4 lib/r10k/git/tag.rb
r10k-1.3.3 lib/r10k/git/tag.rb
r10k-1.3.2 lib/r10k/git/tag.rb
r10k-1.2.3 lib/r10k/git/tag.rb
r10k-1.3.1 lib/r10k/git/tag.rb
r10k-1.2.2 lib/r10k/git/tag.rb
r10k-1.3.0 lib/r10k/git/tag.rb
r10k-1.3.0rc1 lib/r10k/git/tag.rb
r10k-1.2.1 lib/r10k/git/tag.rb
r10k-1.2.0 lib/r10k/git/tag.rb
r10k-1.2.0rc2 lib/r10k/git/tag.rb
r10k-1.2.0rc1 lib/r10k/git/tag.rb