Module: Ant::Configuration::Autoconfigs

Extended by:
DRY::ResourceInjector
Defined in:
lib/ant/configs/autoconfigs.rb,
lib/ant/configs/autoconfigs/aws.rb,
lib/ant/configs/autoconfigs/aws/s3.rb,
lib/ant/configs/autoconfigs/logger.rb,
lib/ant/configs/autoconfigs/sequel.rb,
lib/ant/configs/autoconfigs/aws/sqs.rb,
lib/ant/configs/autoconfigs/features.rb,
lib/ant/configs/autoconfigs/rest_client.rb

Defined Under Namespace

Classes: Aws, Features, Logger, RESTClient, Sequel

Class Method Summary collapse

Class Method Details

.from_config!(adapter, config, loading_path = '.') ⇒ Object



6
7
8
9
10
11
# File 'lib/ant/configs/autoconfigs.rb', line 6

def self.from_config!(adapter, config, loading_path = '.')
  require_relative "autoconfigs/#{loading_path}/#{adapter}"

  factory = resource(adapter)
  factory.from_config(config)
end