class PolyglotFlutter::IO::Token
Constants
- KEYCHAIN_SERVICE
- KEYCHAIN_TOKEN_KEY
Public Class Methods
keychain()
click to toggle source
# File lib/flutter_polyglot_cli/io/token.rb, line 16 def keychain @keychain ||= OSXKeychain.new end
read()
click to toggle source
# File lib/flutter_polyglot_cli/io/token.rb, line 12 def read keychain[KEYCHAIN_SERVICE, KEYCHAIN_TOKEN_KEY] end
write(token)
click to toggle source
# File lib/flutter_polyglot_cli/io/token.rb, line 8 def write(token) keychain[KEYCHAIN_SERVICE, KEYCHAIN_TOKEN_KEY] = token end