Module: Sidekiq::Control

Defined in:
lib/sidekiq/control.rb,
lib/sidekiq/control/version.rb,
lib/sidekiq/control/web/helpers.rb,
lib/sidekiq/control/worker/param.rb,
lib/sidekiq/control/configuration.rb,
lib/sidekiq/control/web/application.rb,
lib/sidekiq/control/worker/instance.rb,
lib/sidekiq/control/web/params_parser.rb

Defined Under Namespace

Modules: Web, Worker Classes: Configuration

Constant Summary collapse

VERSION =
'0.0.12'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.configurationObject Also known as: config



18
19
20
# File 'lib/sidekiq/control.rb', line 18

def configuration
  @configuration ||= Configuration.new
end

Class Method Details

.configure {|configuration| ... } ⇒ Object

Yields:



23
24
25
# File 'lib/sidekiq/control.rb', line 23

def configure
  yield configuration
end

.jobsObject



27
28
29
# File 'lib/sidekiq/control.rb', line 27

def jobs
  @jobs ||= configuration.jobs.map { |job| Worker::Instance.new(job) }
end