Module: MAuth::ConfigFile
- Defined in:
- lib/mauth/client.rb
Constant Summary collapse
- GITHUB_URL =
'https://github.com/mdsol/mauth-client-ruby'.freeze
Class Method Summary collapse
Class Method Details
.load(path) ⇒ Object
249 250 251 252 253 254 255 256 257 258 259 260 |
# File 'lib/mauth/client.rb', line 249 def self.load(path) unless File.exist?(path) raise "File #{path} not found. Please visit #{GITHUB_URL} for details." end @config[path] ||= YAML.load_file(path) unless @config[path] raise "File #{path} does not contain proper YAML information. Visit #{GITHUB_URL} for details." end @config[path] end |