Sha256: b712c437affbf6247acc43117a5e4fe18532c93a64dfb05073f7d81965be5d70

Contents?: true

Size: 764 Bytes

Versions: 5

Compression:

Stored size: 764 Bytes

Contents

# frozen_string_literal: true

module AwsCftTools
  module Runbooks
    class Deploy
      ##
      # module with methods to manage ordering of templates
      #
      module Templates
        ##
        # list the templates in-scope for this deployment
        #
        def templates
          @templates ||= begin
            candidates = client.templates

            candidates.closure(
              filtered_templates(
                candidates
              )
            )
          end
        end

        def template_folder_order
          options[:template_folder_priorities] || []
        end

        private

        def templates_in_folder_order
          templates.in_folder_order(template_folder_order)
        end
      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/deploy/templates.rb
aws-cft-tools-0.1.3 lib/aws_cft_tools/runbooks/deploy/templates.rb
aws-cft-tools-0.1.2 lib/aws_cft_tools/runbooks/deploy/templates.rb
aws-cft-tools-0.1.1 lib/aws_cft_tools/runbooks/deploy/templates.rb
aws-cft-tools-0.1.0 lib/aws_cft_tools/runbooks/deploy/templates.rb