class PolyglotIos::IO::Token
Constants
- KEYCHAIN_SERVICE
- KEYCHAIN_TOKEN_KEY
Public Class Methods
keychain()
click to toggle source
# File lib/ios_polyglot_cli/io/token.rb, line 17 def keychain @keychain ||= OSXKeychain.new end
read()
click to toggle source
# File lib/ios_polyglot_cli/io/token.rb, line 13 def read keychain[KEYCHAIN_SERVICE, KEYCHAIN_TOKEN_KEY] end
write(token)
click to toggle source
# File lib/ios_polyglot_cli/io/token.rb, line 9 def write(token) keychain[KEYCHAIN_SERVICE, KEYCHAIN_TOKEN_KEY] = token end