class Sidekiq::Health::QueueNames

Constants

SIDEKIQ_CONFIGURATION_FILE_PATH

Attributes

configuration[R]

Public Class Methods

new(configuration_file_path = SIDEKIQ_CONFIGURATION_FILE_PATH) click to toggle source
# File lib/sidekiq/health/queue_names.rb, line 10
def initialize(configuration_file_path = SIDEKIQ_CONFIGURATION_FILE_PATH)
  @configuration = YAML.load_file(configuration_file_path)
end

Public Instance Methods

get() click to toggle source
# File lib/sidekiq/health/queue_names.rb, line 14
def get
  configuration[:queues].map { |q| q.is_a?(Array) ? q[0] : q }
end