Sha256: 9aaea8a6e3765e316df8f21c026ee7ab12b7e7c117562df0e995fe6566c2c7e7

Contents?: true

Size: 748 Bytes

Versions: 4

Compression:

Stored size: 748 Bytes

Contents

# frozen_string_literal: true

module AwsCftTools
  module Runbooks
    module Common
      ##
      # Changesets - operations on changesets in the deploy runbook
      #
      module Changesets
        private

        # @todo store this somewhere so we can have an "active" changeset to be reviewed and committed.
        #
        def changeset_set
          @changeset_set ||= SecureRandom.hex(16)
        end

        ##
        # provide a tabular report of changeset actions
        #
        def narrate_changes(changes)
          TablePrint::Config.io = $stdout
          tp(
            changes.map(&:to_narrative),
            %i[action logical_id physical_id type replacement scopes]
          )
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

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