Sha256: 6334dc06ab4ab6666fa784f42c3279f2b1089f8e8990ae88d164d9f311694bc6

Contents?: true

Size: 812 Bytes

Versions: 25

Compression:

Stored size: 812 Bytes

Contents

# frozen_string_literal: true

require_relative '../orchestration_template'
require_relative 'types'

module CfnDsl
  # Cloud Formation Templates
  class CloudFormationTemplate < OrchestrationTemplate
    def self.template_types
      CfnDsl::AWS::Types::Types_Internal
    end

    def self.type_module
      CfnDsl::AWS::Types
    end

    def self.check_types(file: nil, version: nil)
      version = Gem::Version.new(version || '0.0.0') unless version.is_a?(Gem::Version)
      raise Error, "CfnDsl Types and Resources loaded from #{template_types['File']}, expected #{file}" if file && file != template_types['File']
      raise Error, "CfnDsl Types and Resources version #{template_types['Version']}, expected at least #{version}" if template_types['Version'] < version
    end

    create_types
  end
end

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
cfndsl-1.7.2 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.6.0 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.5.0 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.4.0 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.9 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.8 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.7 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.6 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.5 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.4 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.3 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.2 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.1 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.3.0 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.2.0 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.1.1 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.1.0 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.0.6 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.0.5 lib/cfndsl/aws/cloud_formation_template.rb
cfndsl-1.0.4 lib/cfndsl/aws/cloud_formation_template.rb