Class: AwsCftTools::Runbooks::Diff

Inherits:
AwsCftTools::Runbook show all
Defined in:
lib/aws_cft_tools/runbooks/diff.rb,
lib/aws_cft_tools/runbooks/diff/context.rb,
lib/aws_cft_tools/runbooks/diff/context/reporting.rb

Overview

Images - report on available AMIs

Examples:

% aws-cli diff -e QA        # list the differences between deployed and local definitions for QA
% aws-cli diff -e QA -r App # list the differences between deployed and local definitions for
                            # the App role in QA

Defined Under Namespace

Classes: Context

Instance Attribute Summary

Attributes inherited from AwsCftTools::Runbook

#client, #options

Instance Method Summary collapse

Methods inherited from AwsCftTools::Runbook

#_run, #checking, #debug, #detail, #doing, #initialize, #narrative, #operation

Constructor Details

This class inherits a constructor from AwsCftTools::Runbook

Instance Method Details

#runObject



18
19
20
21
22
23
24
25
# File 'lib/aws_cft_tools/runbooks/diff.rb', line 18

def run
  context = Context.new(client.stacks, client.templates, options)

  # now match them up
  context.report_on_missing_templates
  context.report_on_missing_stacks
  context.report_on_differences
end