Sha256: db3b0de7a5fc62bc1ec6701cd6d11b3d107d2f04573bc441d5384464ac7d332c
Contents?: true
Size: 547 Bytes
Versions: 21
Compression:
Stored size: 547 Bytes
Contents
module LogCabin module Modules ## # Pull state from the latest GitHub commit module GithubHash include Prospectus.helpers.find(:github_api) def load! raise('No repo specified') unless @repo @branch ||= 'master' @state.value = @long ? hash : hash.slice(0, 7) end private def hash @hash ||= github_api.branch(@repo, @branch).commit.sha end def branch(value) @branch = value end def long @long = true end end end end
Version data entries
21 entries across 21 versions & 1 rubygems