cloudformation_wrapper 0.1.4 → 0.2.0
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/cloudformation_wrapper/stack_manager.rb +23 -1
- data/lib/cloudformation_wrapper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: fa8043c1f28252ac92be0fd5207ea86c4ad82f4cf3e41a68b4cccd488ecb06f1
|
|
4
|
+
data.tar.gz: 64ee3c351a165a9ef8ac31ccf1a62a6671002af2b2ac670229f6a87e362a1b54
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: b22c85ab38c789d8848e1a881c18693eace8c03dd7c73c876b80f096218a790e711ba0d0990cfe16a0c27fef6c1eed023a65681f8133effc4fa73fe79cf4cdff
|
|
7
|
+
data.tar.gz: 596fcd5a1f8f426c16ec21df7203947cc8bced15ff75642ece9e6a89ad3f7b10d1c475ae21ea835c6bae1ba194d6e111f00f049ac52974424484bfd9d1458618
|
|
@@ -88,7 +88,7 @@ module CloudFormationWrapper
|
|
|
88
88
|
puts "Stack failed to update: #{updated_stack.stack_status} (#{updated_stack.stack_status_reason})"
|
|
89
89
|
return false
|
|
90
90
|
end
|
|
91
|
-
|
|
91
|
+
return_outputs(updated_stack)
|
|
92
92
|
end
|
|
93
93
|
|
|
94
94
|
def construct_template_parameters(parameters)
|
|
@@ -223,5 +223,27 @@ module CloudFormationWrapper
|
|
|
223
223
|
end
|
|
224
224
|
events
|
|
225
225
|
end
|
|
226
|
+
|
|
227
|
+
def return_outputs(stack)
|
|
228
|
+
return if stack.outputs.empty?
|
|
229
|
+
|
|
230
|
+
output_name_width = 30
|
|
231
|
+
output_value_width = 50
|
|
232
|
+
|
|
233
|
+
outputs = {}
|
|
234
|
+
|
|
235
|
+
puts ' '
|
|
236
|
+
puts "#{'Output Name'.ljust(output_name_width)} " \
|
|
237
|
+
"#{'Value'.ljust(output_value_width)} "
|
|
238
|
+
puts "#{'-',center(output_name_width, '-')} #{'-'.center(output_value_width, '-')}"
|
|
239
|
+
|
|
240
|
+
stack.outputs.each do |output|
|
|
241
|
+
outputs[output.output_key.to_sym] = output.output_value
|
|
242
|
+
puts "#{output.output_key.ljust(output_name_width)} #{output.output_value.ljust(output_value_width)}"
|
|
243
|
+
end
|
|
244
|
+
|
|
245
|
+
puts ' '
|
|
246
|
+
outputs
|
|
247
|
+
end
|
|
226
248
|
end
|
|
227
249
|
end
|