Module: Honcho::Adapters
- Defined in:
- lib/honcho/adapters.rb,
lib/honcho/adapters/base.rb,
lib/honcho/adapters/resque.rb,
lib/honcho/adapters/sidekiq.rb
Defined Under Namespace
Classes: Base, Resque, Sidekiq
Class Method Summary collapse
Class Method Details
.from_type(type) ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/honcho/adapters.rb', line 9 def from_type(type) case type when 'sidekiq' Adapters::Sidekiq when 'resque' Adapters::Resque when 'path' # special config key that gets ignored nil else raise "Unknown type #{type}" end end |