Class: Karafka::Routing::Features::Base

Inherits:
Object
  • Object
show all
Defined in:
lib/karafka_ext/pipetree_railway.rb

Class Method Summary collapse

Class Method Details

.load_allObject



7
8
9
10
11
12
13
14
15
16
17
# File 'lib/karafka_ext/pipetree_railway.rb', line 7

def load_all
  return if @loaded

  features.each do |feature|
    next if feature.to_s.include? 'Pipetree::Railway'

    feature.activate
  end

  @loaded = true
end

.post_setup_all(config) ⇒ Object

Runs post setup routing features configuration operations

Parameters:

  • config (Karafka::Core::Configurable::Node)


32
33
34
35
36
37
38
39
# File 'lib/karafka_ext/pipetree_railway.rb', line 32

def post_setup_all(config)
  features.each do |feature|

    next if feature.to_s.include? 'Pipetree::Railway'

    feature.post_setup(config)
  end
end

.pre_setup_all(config) ⇒ Object

Parameters:

  • config (Karafka::Core::Configurable::Node)

    app config that we can alter with particular routing feature specific stuff if needed



21
22
23
24
25
26
27
# File 'lib/karafka_ext/pipetree_railway.rb', line 21

def pre_setup_all(config)
  features.each do |feature|
    next if feature.to_s.include? 'Pipetree::Railway'

    feature.pre_setup(config)
  end
end