cloudformation-tool 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8f10d075bcc46e1aee1eb5d30533280c2cc6da3a
|
4
|
+
data.tar.gz: d469837f4ec102b19fc80b3e9b2329eafd651f95
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3cf45e66cf9fe0788bc4004c813486c6c2777c33a0c69f4931674560d7216c13386b1baea9e51c7a534c4efde8b58d25d4d2e6324b059900a2bb97cd405cecef
|
7
|
+
data.tar.gz: e24c12d0810391ab254ab7c8d9bad79e8aef9207c83fda42399d2e42703879c524a85fa6860b06d0a840e7303cf87aa9be3f528173b4fb7ad809ebdc1b1f279f
|
@@ -18,11 +18,11 @@ module CloudFormationTool
|
|
18
18
|
@basedir = File.dirname(@path)
|
19
19
|
@compiled = false
|
20
20
|
@params = nil
|
21
|
-
text = File.read(@path)
|
22
|
-
# remove comments because white space seen between comments can seriously psych Psych
|
23
|
-
text.gsub!(/^#.*\n/s,'')
|
24
|
-
text = fixShorthand(text)
|
25
21
|
begin
|
22
|
+
text = File.read(@path)
|
23
|
+
# remove comments because white space seen between comments can seriously psych Psych
|
24
|
+
text.gsub!(/^#.*\n/s,'')
|
25
|
+
text = fixShorthand(text)
|
26
26
|
@data = YAML.load(text).to_h
|
27
27
|
rescue Psych::SyntaxError => e
|
28
28
|
e.message =~ /line (\d+) column (\d+)/
|