Class: Karafka::Routing::Features::Base
- Inherits:
-
Object
- Object
- Karafka::Routing::Features::Base
- Defined in:
- lib/karafka_ext/pipetree_railway.rb
Class Method Summary collapse
- .load_all ⇒ Object
-
.post_setup_all(config) ⇒ Object
Runs post setup routing features configuration operations.
- .pre_setup_all(config) ⇒ Object
Class Method Details
.load_all ⇒ Object
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
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
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 |