inspec/libraries/_aws_backend_factory_mixin.rb
Clinton Wolfe e317fff2ed
Move files under lib back to libraries
Signed-off-by: Clinton Wolfe <clintoncwolfe@gmail.com>
2017-12-14 23:41:12 -05:00

12 lines
223 B
Ruby

# Intended to be pulled in via extend, not include
module AwsBackendFactoryMixin
def create
@selected_backend.new
end
def select(klass)
@selected_backend = klass
end
alias set_default_backend select
end