module LogCabin::Modules::GithubTag

Pull state from a GitHub tag

Public Instance Methods

load!() click to toggle source
# File lib/prospectus/modules/github_tag.rb, line 13
def load!
  raise('No repo specified') unless @repo
  @state.value = regex_helper(tag)
end

Private Instance Methods

tag() click to toggle source
# File lib/prospectus/modules/github_tag.rb, line 20
def tag
  return @tag if @tag
  @tags = filter_helper(github_api.tags(@repo).map { |x| x[:name] }).first
end