Class: Esse::AsyncIndexing::Configuration

Inherits:
Object
  • Object
show all
Defined in:
lib/esse/async_indexing/configuration.rb

Defined Under Namespace

Classes: Base, Faktory, Sidekiq

Instance Method Summary collapse

Instance Method Details

#faktoryObject



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

#servicesObject



16
17
18
# File 'lib/esse/async_indexing/configuration.rb', line 16

def services
  @services ||= ConfigService.new
end

#sidekiqObject



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