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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 228a945844501639913bc971d61276654210c011
4
- data.tar.gz: 5670f5b5440d5920e0ce636f4343a0165b0f3836
3
+ metadata.gz: 1b91a07397c5fc50bc84b40dddbec25a8249948b
4
+ data.tar.gz: c270d038a35118f13867d1a0bba492983ebce863
5
5
  SHA512:
6
- metadata.gz: f0b2d65941582dd6531efec310865eeb5294b0e657a56b833ecd3f8b069fdc7bda5bb6a5bfe3140f413ce67db9e4b3f584a0b66f661aba34e899bc82a6bcfca0
7
- data.tar.gz: e7fce25974730950842addbfd79ca0f3fad68af2cb5dc5f0550b02612c1ada22809f7317540d79155b21659b21d4c8687043bafdadf41c5a30d1c624026dc930
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|
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.6.0'
2
+ VERSION = '0.7.0'
3
3
  end
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.6.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-08 00:00:00.000000000 Z
11
+ date: 2016-03-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport