Sha256: 9b07efcb54c1f3ebb35a2d95ce7b272b10666a2e67903cc11690ba6ee750c553

Contents?: true

Size: 239 Bytes

Versions: 134

Compression:

Stored size: 239 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

134 entries across 134 versions & 1 rubygems

Version Path
inspec-4.56.58 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.56.20 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.56.19 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.56.17 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.52.9 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.50.3 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.49.0 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.46.13 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.41.20 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.41.2 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.38.9 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.38.3 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.30 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.25 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.23 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.20 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.17 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.8 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.37.0 lib/resource_support/aws/aws_backend_factory_mixin.rb
inspec-4.36.4 lib/resource_support/aws/aws_backend_factory_mixin.rb