Sha256: 09279c54ecc9505834d089f109a05bb5295ec838d0f8f21f717e6a65a474488f

Contents?: true

Size: 560 Bytes

Versions: 6

Compression:

Stored size: 560 Bytes

Contents

# frozen_string_literal: true

require 'ruby_terraform'

require_relative 'base'
require_relative '../merger'

module RSpec
  module Terraform
    module Configuration
      module Providers
        class InMemory < Base
          attr_reader(:configuration)

          def initialize(configuration = {})
            super()
            @configuration = configuration
            @merger = Merger.new
          end

          def resolve(overrides = {})
            @merger.merge(configuration, overrides)
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
rspec-terraform-0.5.0.pre.9 lib/rspec/terraform/configuration/providers/in_memory.rb
rspec-terraform-0.5.0.pre.8 lib/rspec/terraform/configuration/providers/in_memory.rb
rspec-terraform-0.5.0.pre.7 lib/rspec/terraform/configuration/providers/in_memory.rb
rspec-terraform-0.5.0.pre.6 lib/rspec/terraform/configuration/providers/in_memory.rb
rspec-terraform-0.5.0.pre.5 lib/rspec/terraform/configuration/providers/in_memory.rb
rspec-terraform-0.5.0.pre.4 lib/rspec/terraform/configuration/providers/in_memory.rb