Module: SortedSearch::Credentials
- Defined in:
- lib/sorted_search/credentials.rb
Overview
Module for saving github token to Mac OS X keychain
Constant Summary collapse
- GITHUB_TOKEN_KEY =
"GitHub token key"
Class Method Summary collapse
Class Method Details
.token ⇒ Object
11 12 13 14 |
# File 'lib/sorted_search/credentials.rb', line 11 def self.token keychain = OSXKeychain.new keychain["GitHub CocoaPods OAuth token", GITHUB_TOKEN_KEY] end |
.token=(token) ⇒ Object
16 17 18 19 |
# File 'lib/sorted_search/credentials.rb', line 16 def self.token=(token) keychain = OSXKeychain.new keychain["GitHub CocoaPods OAuth token", GITHUB_TOKEN_KEY] = token end |