Method: CloudFormer::CloudFormation::Init#dump_json
- Defined in:
- lib/cloud_former/metadata_resources/cloud_formation/init.rb
#dump_json ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 |
# File 'lib/cloud_former/metadata_resources/cloud_formation/init.rb', line 19 def dump_json res = { 'configSets' => {} } (@config_sets || []).each do |set| res['configSets'][set.name] = (set.items || []).map do |item| item.name end (set.items || []).each do |item| res[item.name] = item.dump_json end end res end |