Method: Sidekiq::Monitor::Status#display
- Defined in:
- lib/sidekiq/monitor.rb
#display(section = nil) ⇒ Object
12 13 14 15 16 17 18 19 20 |
# File 'lib/sidekiq/monitor.rb', line 12 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) end |