Method: FluQ::DSL::Root#apply
- Defined in:
- lib/fluq/dsl/root.rb
#apply(runner) ⇒ Object
Applies the configuration. Registers components of each feed. Handlers first, then inputs.
26 27 28 29 30 31 32 33 |
# File 'lib/fluq/dsl/root.rb', line 26 def apply(runner) feeds.each do |conf| runner.feed conf.name do |feed| conf.handlers.each {|k, *a| feed.register(k, *a) } conf.inputs.each {|k, *a| feed.listen(k, *a) } end end end |