Method: Boxen::Config#api
- Defined in:
- lib/boxen/config.rb
#api ⇒ Object
Create an API instance using the current user creds. A new instance is created any time ‘token` changes.
91 92 93 |
# File 'lib/boxen/config.rb', line 91 def api @api ||= Octokit::Client.new :login => token, :password => 'x-oauth-basic' end |