class Routemaster::Client::Backends::Sidekiq

Attributes

options[R]

Public Class Methods

configure() { |c| ... } click to toggle source
# File routemaster/client/backends/sidekiq.rb, line 15
def configure
  self.tap do
    Configuration.configure do |c|
      yield c
    end
    @options = {'class' => Worker}.merge Configuration.sidekiq_options
  end
end
send_event(*args) click to toggle source
# File routemaster/client/backends/sidekiq.rb, line 24
def send_event(*args)
  opts = @options.merge('args' => args)
  ::Sidekiq::Client.push opts

  # The push will throw an exception if there is a problem
  true
end