Class: Slaver::PoolsHandler

Inherits:
Object
  • Object
show all
Includes:
Singleton
Defined in:
lib/slaver/pools_handler.rb

Instance Method Summary collapse

Instance Method Details

#for_config(klass, config_name) ⇒ Object



9
10
11
12
13
14
15
# File 'lib/slaver/pools_handler.rb', line 9

def for_config(klass, config_name)
  @klass = klass

  initialize_pool(config_name) unless pools[config_name]

  self
end

#poolsObject



5
6
7
# File 'lib/slaver/pools_handler.rb', line 5

def pools
  @pools ||= {}
end