Method: GitHubService::Configuration#auth_token
- Defined in:
- lib/git-process/github_configuration.rb
#auth_token(opts = {}) ⇒ String
Returns to OAuth token. If it's in .git/config, returns that. Otherwise it connects to GitHub to get the authorization token.
219 220 221 |
# File 'lib/git-process/github_configuration.rb', line 219 def auth_token(opts = {}) get_config_auth_token() || (opts) end |