Sha256: cd7f7452de32c82d27ed4878ae0bbb3617a743eb01adcda963fe7d1f3a1b39cf

Contents?: true

Size: 706 Bytes

Versions: 1

Compression:

Stored size: 706 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)
          tp(
            changes.map(&:to_narrative),
            %i[action logical_id physical_id type replacement scopes]
          )
        end
      end
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
aws-cft-tools-0.1.0 lib/aws_cft_tools/runbooks/common/changesets.rb