class Sidekiq::Monitor::Status
def display(section = nil)
def display(section = nil) section ||= "all" unless VALID_SECTIONS.include? section puts "I don't know how to check the status of '#{section}'!" puts "Try one of these: #{VALID_SECTIONS.join(", ")}" return end send(section) rescue => e puts "Couldn't get status: #{e}" end