Class: Cfoo::YamlParser
Constant Summary collapse
- CFN_DOMAIN_TYPES =
::Cfoo::CLOUDFORMATION_FUNCTIONS + %w[Ref Concat]
Instance Method Summary collapse
Instance Method Details
#load_file(file_name) ⇒ Object
9 10 11 12 13 14 15 |
# File 'lib/cfoo/yaml_parser.rb', line 9 def load_file(file_name) #TODO: raise errors if "value" isn't the right type CFN_DOMAIN_TYPES.each do |domain_type| YAML.add_domain_type_that_gets_loaded_like_in_ruby_1_8(domain_type) end YAML.load_file(file_name) end |