Class: R10K::Git::Tag Deprecated Private
Overview
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
This has been replaced by the ShellGit provider and the StatefulRepository class and will be removed in 2.0.0
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.
Instance Attribute Summary collapse
- #tag ⇒ Object (also: #ref) readonly private
Attributes inherited from Ref
Instance Method Summary collapse
- #fetch? ⇒ Boolean private
-
#initialize(tag, repository = nil) ⇒ Tag
constructor
private
A new instance of Tag.
Methods inherited from Ref
#==, #inspect, #resolvable?, #sha1, #to_s
Constructor Details
#initialize(tag, repository = nil) ⇒ Tag
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Tag.
21 22 23 24 |
# File 'lib/r10k/git/tag.rb', line 21 def initialize(tag, repository = nil) @tag = tag @repository = repository end |
Instance Attribute Details
#tag ⇒ Object (readonly) Also known as: ref
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
18 19 20 |
# File 'lib/r10k/git/tag.rb', line 18 def tag @tag end |
Instance Method Details
#fetch? ⇒ Boolean
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
26 27 28 |
# File 'lib/r10k/git/tag.rb', line 26 def fetch? ! resolvable? end |