Sha256: 660eae33c41d9d433b0c9b938929fec5a483183abf6500a956ecead760b212bd

Contents?: true

Size: 753 Bytes

Versions: 5

Compression:

Stored size: 753 Bytes

Contents

# frozen_string_literal: true

require 'diffy'

module AwsCftTools
  module Runbooks
    ##
    # Images - report on available AMIs
    #
    # @example
    #   % 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
    #
    class Diff < Runbook
      require_relative 'diff/context'

      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
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
aws-cft-tools-0.1.4 lib/aws_cft_tools/runbooks/diff.rb
aws-cft-tools-0.1.3 lib/aws_cft_tools/runbooks/diff.rb
aws-cft-tools-0.1.2 lib/aws_cft_tools/runbooks/diff.rb
aws-cft-tools-0.1.1 lib/aws_cft_tools/runbooks/diff.rb
aws-cft-tools-0.1.0 lib/aws_cft_tools/runbooks/diff.rb