cloud_former 0.7.5 → 0.7.6

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: 3b91654c429b457c8abd0ad8595cb3baedcefe26
4
- data.tar.gz: 5b2edadc6529458a64881a6f664cd4bc79d89e83
3
+ metadata.gz: 261e85fc183e077b9f8db8a44e8f627c4524127a
4
+ data.tar.gz: a9b2e2c1c7569e5be4794022a8825791ab6ffef8
5
5
  SHA512:
6
- metadata.gz: 2f5b05b750ec145cefb0399e08efbc64b14883b8fb8215ad8803cf14a0e69e0a3c76a57eec16b183a14ba64c28d4096a5b714e95e74262e4c24c980c392601dd
7
- data.tar.gz: fbc4ef74b77747d5d6e861e928d15f305cf2f21e562fa0f51aac2d8f2f7b5bb81cfe704b12d3fa1dbf091c496a7b030afd7fbaa83b2a3701a750000b80d22fd0
6
+ metadata.gz: 5c50531eec0a4e47b49be7733907709b2d7b379d35519dffad5447e6512dcbc8eeaf957fe1ca47165070d043ef673c0aa51fc35fc43f71340807e2fff652f141
7
+ data.tar.gz: 640d2b692a259f804b2d6ef306665af43836303851a1d9b0aa7a1e45db077e0ad19575121e00bdee5f4a7b9bc7ead2c4919598c54658aba6ed2b555adc3f2ad7
@@ -37,7 +37,7 @@ module CloudFormer
37
37
  end
38
38
 
39
39
  def add_output(key, value)
40
- @outputs << [key, value]
40
+ @outputs << { key: key, value: value }
41
41
  end
42
42
 
43
43
  def add_condition(condition)
@@ -91,12 +91,12 @@ module CloudFormer
91
91
  if @outputs.any?
92
92
  output_res = {}
93
93
  @outputs.each do |output|
94
- if output[1].is_a?(Resource) || output[1].is_a?(Parameter)
95
- output_res[output[0]] = { 'Value' => { 'Ref' => output[1].get_name } }
96
- elsif output[1].is_a?(Function)
97
- output_res[output[0]] = { 'Value' => output[1].dump_json }
94
+ if output[:value].is_a?(Resource) || output[:value].is_a?(Parameter)
95
+ output_res[output[:key]] = { 'Value' => { 'Ref' => output[:value].get_name } }
96
+ elsif output[:value].is_a?(Function)
97
+ output_res[output[:key]] = { 'Value' => output[:value].dump_json }
98
98
  else
99
- output_res[output[0]] = { 'Value' => output[1] }
99
+ output_res[output[:key]] = { 'Value' => output[:value] }
100
100
  end
101
101
  end
102
102
  res['Outputs'] = output_res
@@ -1,3 +1,3 @@
1
1
  module CloudFormer
2
- VERSION = '0.7.5'
2
+ VERSION = '0.7.6'
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.7.5
4
+ version: 0.7.6
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-10 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport