aws-cfn-decompiler 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/aws/cfn/decompiler.rb +3 -1
- data/lib/aws/cfn/decompiler/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3a24dad7961322559cfed70adecf56b39332946a
|
|
4
|
+
data.tar.gz: ea940bf48fc13571d50d50367b237438ccbaddb0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 0af1fdfa46f8b5e7b1f0eb8bd8edd681763a044971cd1f6c4c0b9c976354d686dcacc45489ac6d83f6313a0e0edd10dd3e71c5675713bc73bca562f6cde7b49e
|
|
7
|
+
data.tar.gz: 7e43d41f1937151315cd7c495d2e88ddbfab1f8ac6004e7e19ce12ef950fb8a4d2eb6f5d7a0bb06b06545f828de89fcd262d3c203e682e9ab62a9a719b544efa
|
data/lib/aws/cfn/decompiler.rb
CHANGED
|
@@ -61,6 +61,8 @@ module Aws
|
|
|
61
61
|
file = "#{name}.#{format}"
|
|
62
62
|
path = File.join(dir,file)
|
|
63
63
|
|
|
64
|
+
hash = { name => value }
|
|
65
|
+
|
|
64
66
|
begin
|
|
65
67
|
File.delete path if File.exists? path
|
|
66
68
|
File.open path, 'w' do |f|
|
|
@@ -68,7 +70,7 @@ module Aws
|
|
|
68
70
|
when /json/
|
|
69
71
|
f.write JSON.pretty_generate(compiled)
|
|
70
72
|
when /yaml/
|
|
71
|
-
f.write
|
|
73
|
+
f.write hash.to_yaml line_width: 1024, indentation: 4, canonical: false
|
|
72
74
|
else
|
|
73
75
|
raise "Unsupported format #{format}. Should have noticed this earlier!"
|
|
74
76
|
end
|