Class: Hippo::RepositoryTag

Inherits:
Object
  • Object
show all
Defined in:
lib/hippo/repository_tag.rb

Instance Method Summary collapse

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)
  @options = options
end

Instance Method Details

#branchObject



9
10
11
# File 'lib/hippo/repository_tag.rb', line 9

def branch
  @options['branch'] || 'master'
end

#tagObject



13
14
15
# File 'lib/hippo/repository_tag.rb', line 13

def tag
  @tag ||= commit_ref_for_branch(branch)
end

#to_sObject



17
18
19
# File 'lib/hippo/repository_tag.rb', line 17

def to_s
  tag
end