cloud_former 0.7.2 → 0.7.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cloud_former/template.rb +9 -3
- data/lib/cloud_former/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: 9eaa1aa8414e490efdbed4abef4c11ee3a877091
|
4
|
+
data.tar.gz: ce548c6931a4c8451e9e913ceb88aad005fd5ed6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 89ac3f0684790868282bc25495607ea9a83d7f6febb54f3419f4b673739bb8b42c18ddb5342a8e1147b56ef50277854cff49a12b4fcca151996caf047c94fa98
|
7
|
+
data.tar.gz: 2fe9854b92a738ce5de9f8401af1fb4f3f0b90ed6d1132506e6a02b2422e242c008771c465e68fdbc4d7409a353689c7e65061119d2fac6622a2a41654379c8b
|
@@ -14,7 +14,9 @@ module CloudFormer
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def parameter(name)
|
17
|
-
@parameters.find { |p| p.get_name == name }
|
17
|
+
param = @parameters.find { |p| p.get_name == name }
|
18
|
+
raise "Parameter #{name} not found" unless param
|
19
|
+
param
|
18
20
|
end
|
19
21
|
|
20
22
|
def add_resource(resource)
|
@@ -22,7 +24,9 @@ module CloudFormer
|
|
22
24
|
end
|
23
25
|
|
24
26
|
def resource(name)
|
25
|
-
@resources.find { |r| r.get_name == name }
|
27
|
+
res = @resources.find { |r| r.get_name == name }
|
28
|
+
raise "Resource #{name} not found" unless res
|
29
|
+
res
|
26
30
|
end
|
27
31
|
|
28
32
|
def add_output(key, value)
|
@@ -34,7 +38,9 @@ module CloudFormer
|
|
34
38
|
end
|
35
39
|
|
36
40
|
def condition(name)
|
37
|
-
@conditions.find { |c| c.get_name == name }
|
41
|
+
cond = @conditions.find { |c| c.get_name == name }
|
42
|
+
raise "Condition #{name} not found" unless cond
|
43
|
+
cond
|
38
44
|
end
|
39
45
|
|
40
46
|
def add_mapping(name, hash)
|
data/lib/cloud_former/version.rb
CHANGED