Method: Fum::Application#load_credentials

Defined in:
lib/fum/application.rb

#load_credentialsObject



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.expand_path('~/.fum')

  options = YAML.load(File.read(config_file))

  # Convert to symbols
  options.each { |key, value|
    options.delete(key)
    options[key.to_sym] = value
  }
  options
end