class Aws::Cfn::Yats::Json2Yaml
Public Instance Methods
pprint_cfn_resource(name, options)
click to toggle source
# File lib/aws/cfn/yats/json2yaml.rb, line 18 def pprint_cfn_resource(name, options) pprint_value({ name => options }) end
pprint_cfn_section(section, name, options)
click to toggle source
# File lib/aws/cfn/yats/json2yaml.rb, line 14 def pprint_cfn_section(section, name, options) pprint_value(section) end
pprint_cfn_template(tpl)
click to toggle source
# File lib/aws/cfn/yats/json2yaml.rb, line 10 def pprint_cfn_template(tpl) pprint_value(tpl) end
pprint_value(val, indent="\t")
click to toggle source
# File lib/aws/cfn/yats/json2yaml.rb, line 22 def pprint_value(val, indent="\t") yml = YAML::dump(val) puts yml end