Module: Karafka::Setup::Dsl
- Included in:
- App
- Defined in:
- lib/karafka/setup/dsl.rb
Overview
Note:
Despite providing methods, everything is still persisted and fetched
Dsl for allowing to work with the configuration from the Karafka::App from the Karafka::Setup::Config
Instance Method Summary collapse
-
#config ⇒ Karafka::Config
Config instance.
-
#setup(&block) ⇒ Object
Sets up the whole configuration.
Instance Method Details
#config ⇒ Karafka::Config
Returns config instance.
16 17 18 |
# File 'lib/karafka/setup/dsl.rb', line 16 def config Setup::Config.config end |
#setup(&block) ⇒ Object
Sets up the whole configuration
11 12 13 |
# File 'lib/karafka/setup/dsl.rb', line 11 def setup(&block) Setup::Config.setup(&block) end |