Adds a new mechanism to load providers from any gem or file path.

* Adds ability to load only providers used in config file
This commit is contained in:
Corey Osman 2018-06-11 17:02:56 -07:00
parent 10bf6c8816
commit 66324f9c33
13 changed files with 319 additions and 14 deletions

View file

@ -11,7 +11,7 @@ module Vmpooler
require 'yaml'
require 'set'
%w[api graphite logger pool_manager statsd dummy_statsd generic_connection_pool providers].each do |lib|
%w[api graphite logger pool_manager statsd dummy_statsd generic_connection_pool].each do |lib|
require "vmpooler/#{lib}"
end