Method: Configureasy::ConfigParser#parse

Defined in:
lib/configureasy/config_parser.rb

#parseObject

Returns config content



38
39
40
41
42
43
# File 'lib/configureasy/config_parser.rb', line 38

def parse
  content = YAML.load_file(filename)
  content.has_key?(self.environment) ? content[self.environment] : content
rescue
  raise "Invalid config content for #{filename}"
end