Method: FlashFlow::Data::Github#initialize_connection!
- Defined in:
- lib/flash_flow/data/github.rb
#initialize_connection!(token) ⇒ Object
20 21 22 23 24 25 26 27 |
# File 'lib/flash_flow/data/github.rb', line 20 def initialize_connection!(token) if token.nil? raise RuntimeError.new("Github token must be set in your flash_flow config file.") end octokit.configure do |c| c.access_token = token end end |