Sha256: 25e2b7a241e31ca0060fa17a746b13b6cb133b008bae7c5dd6423c07ba9b0dbd
Contents?: true
Size: 558 Bytes
Versions: 20
Compression:
Stored size: 558 Bytes
Contents
require 'json' require 'open-uri' module LogCabin module Modules ## # Pull state from a GitHub tag module GithubTag include Prospectus.helpers.find(:regex) include Prospectus.helpers.find(:github_api) include Prospectus.helpers.find(:filter) def load! raise('No repo specified') unless @repo @state.value = regex_helper(tag) end private def tag return @tag if @tag @tags = filter_helper(github_api.tags(@repo).map { |x| x[:name] }).first end end end end
Version data entries
20 entries across 20 versions & 1 rubygems