Sha256: 6b7cebad121ddc6503896838b0f6cbf60f0420d1198ea0c59cae5b1e34ac81c3

Contents?: true

Size: 251 Bytes

Versions: 5

Compression:

Stored size: 251 Bytes

Contents

# Intended to be pulled in via extend, not include
module AwsBackendFactoryMixin
  def create(inspec)
    @selected_backend.new(inspec)
  end

  def select(klass)
    @selected_backend = klass
  end

  alias set_default_backend select
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
inspec-2.1.81 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-2.1.21 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-2.1.10 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-2.0.32 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-2.0.17 lib/resource_support/aws/aws_backend_factory_mixin.rb