Module: LogCabin::Modules::GithubHash
- Defined in:
- lib/prospectus/modules/github_hash.rb
Overview
Pull state from the latest GitHub commit
Instance Method Summary collapse
Instance Method Details
#load! ⇒ Object
8 9 10 11 12 |
# File 'lib/prospectus/modules/github_hash.rb', line 8 def load! raise('No repo specified') unless @repo @branch ||= 'master' @state.value = @long ? hash : hash.slice(0, 7) end |