class GitCompound::Component::Version::Tag

Component version as tag

Public Class Methods

new(repository, tag) click to toggle source
# File lib/git_compound/component/version/tag.rb, line 7
def initialize(repository, tag)
  @repository = repository
  @tag        = tag
end

Public Instance Methods

reachable?() click to toggle source
# File lib/git_compound/component/version/tag.rb, line 20
def reachable?
  @repository.tags.key?(@tag)
end
ref() click to toggle source
# File lib/git_compound/component/version/tag.rb, line 12
def ref
  @tag
end
sha() click to toggle source
# File lib/git_compound/component/version/tag.rb, line 16
def sha
  @repository.tags[@tag]
end
to_s() click to toggle source
# File lib/git_compound/component/version/tag.rb, line 24
def to_s
  "tag: #{@tag}"
end