Module: AwsCftTools::Runbooks::Diff::Context::Reporting
- Included in:
- AwsCftTools::Runbooks::Diff::Context
- Defined in:
- lib/aws_cft_tools/runbooks/diff/context/reporting.rb
Overview
Reporting functions for the Diff context
Instance Method Summary collapse
- #output_report_on_differences(diffs) ⇒ Object
- #output_report_on_missing_stacks(missing) ⇒ Object
- #output_report_on_missing_templates(missing) ⇒ Object
Instance Method Details
#output_report_on_differences(diffs) ⇒ Object
24 25 26 27 |
# File 'lib/aws_cft_tools/runbooks/diff/context/reporting.rb', line 24 def output_report_on_differences(diffs) report_on_blank_diffs(diffs) report_on_real_diffs(diffs) end |
#output_report_on_missing_stacks(missing) ⇒ Object
18 19 20 21 22 |
# File 'lib/aws_cft_tools/runbooks/diff/context/reporting.rb', line 18 def output_report_on_missing_stacks(missing) missing = template_filenames(missing) return if missing.empty? puts "\nUndeployed templates:\n #{missing.sort.join("\n ")}\n" end |
#output_report_on_missing_templates(missing) ⇒ Object
13 14 15 16 |
# File 'lib/aws_cft_tools/runbooks/diff/context/reporting.rb', line 13 def output_report_on_missing_templates(missing) return if missing.empty? puts "\nStacks with no template:\n #{missing.sort.join("\n ")}\n" end |