Class: Hippo::RepositoryTag
- Inherits:
-
Object
- Object
- Hippo::RepositoryTag
- Defined in:
- lib/hippo/repository_tag.rb
Instance Method Summary collapse
- #branch ⇒ Object
-
#initialize(options) ⇒ RepositoryTag
constructor
A new instance of RepositoryTag.
- #tag ⇒ Object
- #to_s ⇒ Object
Constructor Details
#initialize(options) ⇒ RepositoryTag
Returns a new instance of RepositoryTag.
5 6 7 |
# File 'lib/hippo/repository_tag.rb', line 5 def initialize() @options = end |
Instance Method Details
#branch ⇒ Object
9 10 11 |
# File 'lib/hippo/repository_tag.rb', line 9 def branch @options['branch'] || 'master' end |
#tag ⇒ Object
13 14 15 |
# File 'lib/hippo/repository_tag.rb', line 13 def tag @tag ||= commit_ref_for_branch(branch) end |
#to_s ⇒ Object
17 18 19 |
# File 'lib/hippo/repository_tag.rb', line 17 def to_s tag end |