Module: AwsBackendFactoryMixin

Defined in:
lib/resource_support/aws/aws_backend_factory_mixin.rb

Overview

Intended to be pulled in via extend, not include

Instance Method Summary collapse

Instance Method Details

#create(inspec) ⇒ Object



3
4
5
# File 'lib/resource_support/aws/aws_backend_factory_mixin.rb', line 3

def create(inspec)
  @selected_backend.new(inspec)
end

#select(klass) ⇒ Object Also known as: set_default_backend



7
8
9
# File 'lib/resource_support/aws/aws_backend_factory_mixin.rb', line 7

def select(klass)
  @selected_backend = klass
end