cloudformation_wrapper 0.1.4 → 0.2.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
  SHA256:
3
- metadata.gz: f47bebe1f3736722886538c27e2accf2ec8443ca3b0948e9650cafe78868d50e
4
- data.tar.gz: fc7824704acde353e69c2e5a43fc27782f513891e187b7eabf178f6c64666f4e
3
+ metadata.gz: fa8043c1f28252ac92be0fd5207ea86c4ad82f4cf3e41a68b4cccd488ecb06f1
4
+ data.tar.gz: 64ee3c351a165a9ef8ac31ccf1a62a6671002af2b2ac670229f6a87e362a1b54
5
5
  SHA512:
6
- metadata.gz: 63819c959001cbb13e3fc989ef12a66aee9504cdef4d2bc6add26dfbdcd5c42065deff4716d7be18654010ffbbab49c68c8a5fbda44064997d1b5cbffa35e471
7
- data.tar.gz: 9a419c5daefdd69cf5c5712db8e721f1decf18d11da07224c97aebf0b1994ed63aa4a3c14c3f6c495f8ef13b763744976d8515ad56858226645b88e2fc32987b
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
- true
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
@@ -1,4 +1,4 @@
1
1
  module CloudFormationWrapper
2
2
  # @!visibility private
3
- VERSION = '0.1.4'.freeze
3
+ VERSION = '0.2.0'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudformation_wrapper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ted Armstrong