Method: Github.get_authentication
- Defined in:
- lib/github.rb
.get_authentication(authorization_info) ⇒ Object
45 46 47 48 49 50 51 52 53 |
# File 'lib/github.rb', line 45 def self.get_authentication() username = self::config("github.user") token = self::config("github.token") if !username.empty? && !token.empty? return {:login => username, :access_token => token} else return self::() end end |