module GitHubStatus::Support::Source

Public Instance Methods

access_token() click to toggle source
# File lib/github-status/support/source.rb, line 10
def access_token
  @access_token ||= source.fetch 'access_token'
rescue KeyError
  STDERR.puts 'Source is missing access_token'
  abort
end
branch() click to toggle source
# File lib/github-status/support/source.rb, line 26
def branch
  @branch ||= source.fetch('branch') { 'master' }
end
repo() click to toggle source
# File lib/github-status/support/source.rb, line 18
def repo
  @repo ||= source.fetch 'repo'
rescue KeyError
  STDERR.puts 'Source is missing repo'
  abort
end