Class: Kubernetes::Health::SidekiqOptionsResolver
- Inherits:
-
Object
- Object
- Kubernetes::Health::SidekiqOptionsResolver
- Defined in:
- lib/kubernetes/health/sidekiq_options_resolver.rb
Class Method Summary collapse
Class Method Details
.[](key) ⇒ Object
4 5 6 7 8 9 10 |
# File 'lib/kubernetes/health/sidekiq_options_resolver.rb', line 4 def self.[](key) return Sidekiq[key] if Sidekiq.respond_to?('[]') return Sidekiq.[key] if Sidekiq.respond_to?('options') # Sidekiq ~> 6.0 return Sidekiq::Config.new[key] if defined?(Sidekiq::Config) # Sidekiq ~> 7.0 raise 'Sidekiq version not supported' end |