module AwsCftTools::Runbooks::Deploy::Reporting
module with various reporting functions for deployment
Private Instance Methods
report_available_images()
click to toggle source
report_available_images
- provide tabular report of available images
# File lib/aws_cft_tools/runbooks/deploy/reporting.rb, line 26 def report_available_images detail('Available Images') { tp(report_available_images_data) } end
report_available_images_data()
click to toggle source
# File lib/aws_cft_tools/runbooks/deploy/reporting.rb, line 30 def report_available_images_data available_images.map { |role_env, ami| role_env.split(/:/).reverse + [ami] } .compact .sort .map { |role_env_ami| %w[role environment ami].zip(role_env_ami).to_h } end
report_undefined_variables()
click to toggle source
report_undefined_image - provide list of undefined imports that block stack deployment
# File lib/aws_cft_tools/runbooks/deploy/reporting.rb, line 40 def report_undefined_variables vars = templates_in_folder_order.undefined_variables return unless vars.any? puts '*** Unable to update or create templates.' puts 'The following variables are referenced but not defined: ', vars exit 1 # TODO: convert to a raise end
run_reports()
click to toggle source
# File lib/aws_cft_tools/runbooks/deploy/reporting.rb, line 14 def run_reports report_available_images report_undefined_variables detail do tp(templates, ['filename']) end end