module OmniKiq
Attributes
configuration[W]
Public Class Methods
configuration()
click to toggle source
# File lib/omnikiq.rb, line 23 def self.configuration @configuration ||= begin config = OmniKiq::Configuration.new config end end
configure() { |configuration| ... }
click to toggle source
# File lib/omnikiq.rb, line 30 def self.configure yield configuration if block_given? configure_client end
configure_client()
click to toggle source
# File lib/omnikiq.rb, line 35 def self.configure_client Sidekiq.configure_client do |config| config.redis = { url: OmniKiq.configuration.redis_url, namespace: OmniKiq.configuration.redis_namespace, size: 10 } end enable_testing if OmniKiq.configuration.test_mode end
Private Class Methods
enable_testing()
click to toggle source
# File lib/omnikiq.rb, line 52 def self.enable_testing require 'sidekiq/testing' Sidekiq::Testing.fake! end