cloud_former 0.6.0 → 0.7.0
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 -0
- data/lib/cloud_former/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b91a07397c5fc50bc84b40dddbec25a8249948b
|
4
|
+
data.tar.gz: c270d038a35118f13867d1a0bba492983ebce863
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dabf2c1cee93df6e5dfaecba7c2c21d1d2c6e844df4d3a075105cce307e9e253a142a4535a13d7a22317464325ade7b3eb19ea794f847a84f8f8abc06938a2d6
|
7
|
+
data.tar.gz: 4eff7f69b1e2692c9da62d2fd79df8b2481d0a9666d0640d36f2aad3ccb9b4702cda7c8be86806472939cbe58d5ebdc32cf89b7f98504756d5a3718f4e4766c4
|
@@ -6,6 +6,7 @@ module CloudFormer
|
|
6
6
|
@parameters = []
|
7
7
|
@outputs = []
|
8
8
|
@conditions = []
|
9
|
+
@mappings = {}
|
9
10
|
end
|
10
11
|
|
11
12
|
def add_parameter(parameter)
|
@@ -24,6 +25,10 @@ module CloudFormer
|
|
24
25
|
@conditions << condition
|
25
26
|
end
|
26
27
|
|
28
|
+
def add_mapping(name, hash)
|
29
|
+
@mappings[name] = hash
|
30
|
+
end
|
31
|
+
|
27
32
|
def dump_json
|
28
33
|
res = { 'AWSTemplateFormatVersion' => '2010-09-09' }
|
29
34
|
|
@@ -43,6 +48,10 @@ module CloudFormer
|
|
43
48
|
res['Conditions'] = condition_res
|
44
49
|
end
|
45
50
|
|
51
|
+
if @mappings.any?
|
52
|
+
res['Mappings'] = @mappings
|
53
|
+
end
|
54
|
+
|
46
55
|
if @resources.any?
|
47
56
|
resource_res = {}
|
48
57
|
@resources.each do |resource|
|
data/lib/cloud_former/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cloud_former
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aubrey Holland
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|