Class: Karafka::App
- Inherits:
-
Object
- Object
- Karafka::App
- Defined in:
- lib/karafka/app.rb
Overview
App class
Class Method Summary collapse
-
.boot! ⇒ Object
Sets up all the internal components and bootstrap whole app We need to know details about routes in order to setup components, that’s why we don’t setup them after std setup is done.
-
.config ⇒ Karafka::Config
Config instance.
-
.routes ⇒ Karafka::Routing::Builder
Routes builder instance.
-
.setup(&block) ⇒ Object
Sets up the whole configuration.
Class Method Details
.boot! ⇒ Object
Sets up all the internal components and bootstrap whole app We need to know details about routes in order to setup components, that’s why we don’t setup them after std setup is done
15 16 17 |
# File 'lib/karafka/app.rb', line 15 def boot! Setup::Config.setup_components end |
.config ⇒ Karafka::Config
Returns config instance.
20 21 22 |
# File 'lib/karafka/app.rb', line 20 def config Setup::Config.config end |
.routes ⇒ Karafka::Routing::Builder
Returns routes builder instance.
25 26 27 |
# File 'lib/karafka/app.rb', line 25 def routes Routing::Builder.instance end |