Sha256: 508454313c3e5da0fe315e17ebf813e4109ae97157a9a6301ac07d7a6ced77ba

Contents?: true

Size: 917 Bytes

Versions: 7

Compression:

Stored size: 917 Bytes

Contents

module CFM
  class Configuration
    include CertificationHelper
    include ConfigurationHelper

    attr_accessor :stack_name,
                  :template,
                  :stack_tag_value,
                  :stack_id,
                  :yaml,
                  :template_path,
                  :parameters,
                  :azs,
                  :vpc_id

    def initialize
      aws_certificate
      @yaml = ConfigurationHelper.load_yaml_file
      @stack_name = get_yaml_stack_name
      @stack_tag_value = get_yaml_stack_tag_value
      @template_path = get_yaml_template_path
      @azs = get_yaml_zas
    end

    def get_template_file(type)
      get_yaml_template_file(type)
    end

    def create_client
      Aws::CloudFormation::Client.new
    end
  end

  class ConfigurationStub < Configuration
    def create_client
      Aws::CloudFormation::Client.new(stub_responses: true)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
etude_for_aws-0.7.10 lib/etude_for_aws/cfm/configuration.rb
etude_for_aws-0.7.9 lib/etude_for_aws/cfm/configuration.rb
etude_for_aws-0.7.8 lib/etude_for_aws/cfm/configuration.rb
etude_for_aws-0.7.7 lib/etude_for_aws/cfm/configuration.rb
etude_for_aws-0.7.6 lib/etude_for_aws/cfm/configuration.rb
etude_for_aws-0.7.5 lib/etude_for_aws/cfm/configuration.rb
etude_for_aws-0.7.4 lib/etude_for_aws/cfm/configuration.rb