Sha256: 12bf98c3d63bc0b605c65690bfd4c7fb23405624b1cc55a37c806d0ef993e5c9

Contents?: true

Size: 572 Bytes

Versions: 6

Compression:

Stored size: 572 Bytes

Contents

class Lono::Cfn::Plan::Changeset
  class Notifications < Base
    def changes
      old = stack.notification_arns
      new = @change_set.notification_arns
      added = new - old
      removed = old - new
      return if added.empty? && removed.empty?

      logger.info "Changes to notifications"
      log = Proc.new do |k|
        logger.info "    #{k}"
      end
      unless added.empty?
        logger.info "Added:"
        added.each(&log)
      end
      unless removed.empty?
        logger.info "Removed:"
        removed.each(&log)
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
lono-8.0.0.pre.rc6 lib/lono/cfn/plan/changeset/notifications.rb
lono-8.0.0.pre.rc5 lib/lono/cfn/plan/changeset/notifications.rb
lono-8.0.0.pre.rc4 lib/lono/cfn/plan/changeset/notifications.rb
lono-8.0.0.pre.rc3 lib/lono/cfn/plan/changeset/notifications.rb
lono-8.0.0.pre.rc2 lib/lono/cfn/plan/changeset/notifications.rb
lono-8.0.0.pre.rc1 lib/lono/cfn/plan/changeset/notifications.rb