Class: Rake::Funnel::Support::Environments::Loader

Inherits:
Object
  • Object
show all
Defined in:
lib/rake/funnel/support/environments/loader.rb

Class Method Summary collapse

Class Method Details

.load_configuration(config, store = configatron, customizer = nil) ⇒ Object



12
13
14
15
16
17
18
19
20
21
22
23
24
25
# File 'lib/rake/funnel/support/environments/loader.rb', line 12

def load_configuration(config, store = configatron, customizer = nil)
  $stderr.print("Configuring for #{config[:name]}\n")
  store.unlock!
  store.reset!

  store.env = config[:name]
  load(config, store)

  customizer.call(store) if customizer && customizer.respond_to?(:call)

  store.lock!

  $stderr.print("\n" + store.inspect + "\n")
end