Class: Sidekiq::Monitor

Inherits:
Object
  • Object
show all
Defined in:
lib/sidekiq/monitor.rb

Defined Under Namespace

Classes: Status

Constant Summary collapse

CMD =
File.basename($PROGRAM_NAME)

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#stageObject (readonly)

Returns the value of attribute stage.



9
10
11
# File 'lib/sidekiq/monitor.rb', line 9

def stage
  @stage
end

Class Method Details



11
12
13
14
15
16
17
18
19
20
# File 'lib/sidekiq/monitor.rb', line 11

def self.print_usage
  puts "#{CMD} - monitor Sidekiq from the command line."
  puts
  puts "Usage: #{CMD} <section>"
  puts
  puts "       <section> (optional) view a specific section of the status output"
  puts "       Valid sections are: #{Sidekiq::Monitor::Status::VALID_SECTIONS.join(", ")}"
  puts
  puts "Set REDIS_URL to the location of your Redis server if not monitoring localhost."
end