Method: Fum::Application#load_credentials
- Defined in:
- lib/fum/application.rb
#load_credentials ⇒ Object
99 100 101 102 103 104 105 106 107 108 109 110 111 112 |
# File 'lib/fum/application.rb', line 99 def load_credentials require 'yaml' config_file = File.('~/.fum') = YAML.load(File.read(config_file)) # Convert to symbols .each { |key, value| .delete(key) [key.to_sym] = value } end |