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

Instance Method Details

#configKarafka::Config

Returns config instance.

Returns:

  • (Karafka::Config)

    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

Parameters:

  • block (Block)

    configuration block



11
12
13
# File 'lib/karafka/setup/dsl.rb', line 11

def setup(&block)
  Setup::Config.setup(&block)
end