cloud_former 0.7.5 → 0.7.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/cloud_former/template.rb +6 -6
- 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: 261e85fc183e077b9f8db8a44e8f627c4524127a
|
|
4
|
+
data.tar.gz: a9b2e2c1c7569e5be4794022a8825791ab6ffef8
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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 <<
|
|
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[
|
|
95
|
-
output_res[output[
|
|
96
|
-
elsif output[
|
|
97
|
-
output_res[output[
|
|
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[
|
|
99
|
+
output_res[output[:key]] = { 'Value' => output[:value] }
|
|
100
100
|
end
|
|
101
101
|
end
|
|
102
102
|
res['Outputs'] = output_res
|
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.7.
|
|
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-
|
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|