Method: VCAP::Config.from_file

Defined in:
lib/vcap/config.rb

.from_file(filename, symbolize_keys = true) ⇒ Object



16
17
18
19
20
21
# File 'lib/vcap/config.rb', line 16

def from_file(filename, symbolize_keys=true)
  config = YAML.load_file(filename)
  config = VCAP.symbolize_keys(config) if symbolize_keys
  @schema.validate(config)
  config
end