cloud_former 0.7.1 → 0.7.2
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 +12 -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: d8f97598610a8459faa5a88707af5431a44f1b2c
|
4
|
+
data.tar.gz: 02fe88e39891dd5d06279b14841847dcb73f0dca
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5784ce7010c198771ea400c4c5442e8490371aee6ded71540e9a9f9a49c03a013aea32ef36f201e1c4db8718c8dc107875d6dedab4fbd952c04fcc15945d5420
|
7
|
+
data.tar.gz: 5d300778228dbdeeccf0da1876624fcf87f3bf91126b4f18897949f2157027284447dcae539a070c41cfceb5dd8009307bab724e2de4c2b93929d6dedb07bbf0
|
@@ -13,10 +13,18 @@ module CloudFormer
|
|
13
13
|
@parameters << parameter
|
14
14
|
end
|
15
15
|
|
16
|
+
def parameter(name)
|
17
|
+
@parameters.find { |p| p.get_name == name }
|
18
|
+
end
|
19
|
+
|
16
20
|
def add_resource(resource)
|
17
21
|
@resources << resource
|
18
22
|
end
|
19
23
|
|
24
|
+
def resource(name)
|
25
|
+
@resources.find { |r| r.get_name == name }
|
26
|
+
end
|
27
|
+
|
20
28
|
def add_output(key, value)
|
21
29
|
@outputs << [key, value]
|
22
30
|
end
|
@@ -25,6 +33,10 @@ module CloudFormer
|
|
25
33
|
@conditions << condition
|
26
34
|
end
|
27
35
|
|
36
|
+
def condition(name)
|
37
|
+
@conditions.find { |c| c.get_name == name }
|
38
|
+
end
|
39
|
+
|
28
40
|
def add_mapping(name, hash)
|
29
41
|
@mappings[name] = hash
|
30
42
|
end
|
data/lib/cloud_former/version.rb
CHANGED