Sha256: cd746ccdde89999312370a87171e1bdfd1b55662210a14add39010b2d826af2e
Contents?: true
Size: 640 Bytes
Versions: 24
Compression:
Stored size: 640 Bytes
Contents
# frozen_string_literal: true require 'ruby_terraform' require_relative './base' module RSpec module Terraform module Configuration module Providers class Chain < Base attr_reader(:providers) def initialize(opts = {}) super() @providers = opts[:providers] || [] end def resolve(overrides = {}) providers.reduce(overrides) do |acc, provider| provider.resolve(acc) end end def reset providers.each { |provider| provider.reset } end end end end end end
Version data entries
24 entries across 24 versions & 1 rubygems