module Chairman
Constants
- VERSION
Attributes
client_id[R]
client_secret[R]
scope[R]
session[R]
Public Class Methods
config(client_id, client_secret, scope)
click to toggle source
# File lib/chairman.rb, line 15 def config(client_id, client_secret, scope) memcache_host = ENV['MEMCACHIER_SERVERS'] || ENV['MEMCACHED_URL'] || 'localhost:11211' stack = Faraday::RackBuilder.new do |builder| builder.use Faraday::HttpCache, shared_cache: false, logger: Logger.new(STDOUT), store: :mem_cache_store, store_options: [memcache_host], serializer: Oj builder.adapter Faraday.default_adapter end Octokit.middleware = stack @client_id = client_id @client_secret = client_secret @scope = scope end