module SidekiqErr
Constants
- CMD
- VERSION
Public Class Methods
alive?(hostname)
click to toggle source
# File lib/sidekiq-err.rb, line 35 def self.alive?(hostname) SidekiqErr::Alive.check?(hostname) end
print_usage()
click to toggle source
# File lib/sidekiq-err.rb, line 13 def self.print_usage puts "#{CMD} - Sidekiq process reporting." puts puts "Usage: #{CMD}" puts puts ' -a, --alive HOSTNAME' puts ' check if the HOSTNAME is present in the Sidekiq process list' puts ' sets the exit code to 1 if the HOSTNAME process is not found' puts puts ' -r, --report [SECTION_NAME]' puts ' view the status report' puts ' SECTION_NAME is optional and filters the report to a specific section' puts " Valid sections are: #{View.valid_sections.join(', ')}" puts " Default is 'all'" puts end
status(section = nil)
click to toggle source
# File lib/sidekiq-err.rb, line 30 def self.status(section = nil) section ||= 'all' SidekiqErr::View.new(section).display end