Class: Esse::AsyncIndexing::Configuration
- Inherits:
-
Object
- Object
- Esse::AsyncIndexing::Configuration
show all
- Defined in:
- lib/esse/async_indexing/configuration.rb
Defined Under Namespace
Classes: Base, Faktory, Sidekiq
Instance Method Summary
collapse
Instance Method Details
#faktory ⇒ Object
20
21
22
23
24
25
26
27
28
29
30
|
# File 'lib/esse/async_indexing/configuration.rb', line 20
def faktory
@faktory ||= begin
services.add(:faktory)
Configuration::Faktory.new
end
if block_given?
yield @faktory
else
@faktory
end
end
|
#services ⇒ Object
16
17
18
|
# File 'lib/esse/async_indexing/configuration.rb', line 16
def services
@services ||= ConfigService.new
end
|
#sidekiq ⇒ Object
32
33
34
35
36
37
38
39
40
41
42
|
# File 'lib/esse/async_indexing/configuration.rb', line 32
def sidekiq
@sidekiq ||= begin
services.add(:sidekiq)
Configuration::Sidekiq.new
end
if block_given?
yield @sidekiq
else
@sidekiq
end
end
|