Module: Helpers
- Defined in:
- lib/metamatter/helpers.rb
Constant Summary collapse
- MEDIA_TYPE =
Authenticated Octokit TODO remove license preview media type when this ships
"application/vnd.github.drax-preview+json"
Instance Method Summary collapse
Instance Method Details
#client ⇒ Object
6 7 8 9 |
# File 'lib/metamatter/helpers.rb', line 6 def client @client ||= Octokit::Client.new(:access_token => ENV['GITHUB_TOKEN'], :default_media_type => MEDIA_TYPE) end |