cloud_former 0.7.3 → 0.7.4
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 +3 -0
- 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: 5d59fe087a2719d2b7afb963a44eebc512aa31b7
|
4
|
+
data.tar.gz: 265456b782e59fb178bda391b22aedb4b869c0fe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d97778d43d3de11b56bb52c83b74f7d7b10aa44410f4fbfb3bb598935a563b72cae42f6f915cc239125dbab805d307c143de77e807e4c86001625538de27e2f4
|
7
|
+
data.tar.gz: 08ff0257afaea1abae5c6f9d1cab8c73367ebb40a75db30d1503524d99b24194749a526002a364e953ebde284df18d9dde8b03eff9e2f7a2ba5672c4736b53d8
|
@@ -10,6 +10,7 @@ module CloudFormer
|
|
10
10
|
end
|
11
11
|
|
12
12
|
def add_parameter(parameter)
|
13
|
+
raise "Overwriting parameter with name #{parameter.get_name}" if @parameters.any? { |p| p.get_name == parameter.get_name }
|
13
14
|
@parameters << parameter
|
14
15
|
end
|
15
16
|
|
@@ -20,6 +21,7 @@ module CloudFormer
|
|
20
21
|
end
|
21
22
|
|
22
23
|
def add_resource(resource)
|
24
|
+
raise "Overwriting resource with name #{resource.get_name}" if @resources.any? { |r| r.get_name == resource.get_name }
|
23
25
|
@resources << resource
|
24
26
|
end
|
25
27
|
|
@@ -34,6 +36,7 @@ module CloudFormer
|
|
34
36
|
end
|
35
37
|
|
36
38
|
def add_condition(condition)
|
39
|
+
raise "Overwriting condition with name #{condition.get_name}" if @conditions.any? { |c| c.get_name == condition.get_name }
|
37
40
|
@conditions << condition
|
38
41
|
end
|
39
42
|
|
data/lib/cloud_former/version.rb
CHANGED