Class: Prospector::Background::Coordinator
- Inherits:
-
Object
- Object
- Prospector::Background::Coordinator
- Defined in:
- lib/prospector/background/coordinator.rb
Instance Method Summary collapse
Instance Method Details
#enqueue ⇒ Object
3 4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/prospector/background/coordinator.rb', line 3 def enqueue return unless Prospector.enabled? case adapter_name when :active_job then enqueue_via_active_job when :sidekiq then enqueue_via_sidekiq when :inline then perform_immediately when :none then return else raise UnsupportedAdapterError.new(adapter_name) end end |