mirror of
https://github.com/mperham/sidekiq.git
synced 2022-11-09 13:52:34 -05:00
polish sidekiqmon, add to gemspec, fixes #4242
This commit is contained in:
parent
2a496dd8e9
commit
d58e1e3411
4 changed files with 8 additions and 8 deletions
|
@ -5,6 +5,7 @@
|
|||
HEAD
|
||||
---------
|
||||
|
||||
- Add `sidekiqmon` to gemspec executables [#4242]
|
||||
- Gracefully handle `Sidekiq.logger = nil` [#4240]
|
||||
- Inject Sidekiq::LogContext module if user-supplied logger does not include it [#4239]
|
||||
|
||||
|
|
|
@ -2,8 +2,7 @@
|
|||
|
||||
require 'sidekiq/monitor'
|
||||
|
||||
if ARGV[0] == 'status'
|
||||
Sidekiq::Monitor::Status.new.display(ARGV[1])
|
||||
else
|
||||
Sidekiq::Monitor.print_usage
|
||||
end
|
||||
section = "all"
|
||||
section = ARGV[0] if ARGV.size == 1
|
||||
|
||||
Sidekiq::Monitor::Status.new.display(section)
|
||||
|
|
|
@ -11,7 +11,7 @@ class Sidekiq::Monitor
|
|||
def self.print_usage
|
||||
puts "#{CMD} - monitor Sidekiq from the command line."
|
||||
puts
|
||||
puts "Usage: #{CMD} status <section>"
|
||||
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(", ")}"
|
||||
|
@ -47,7 +47,7 @@ class Sidekiq::Monitor
|
|||
|
||||
def version
|
||||
puts "Sidekiq #{Sidekiq::VERSION}"
|
||||
puts Time.now
|
||||
puts Time.now.utc
|
||||
end
|
||||
|
||||
def overview
|
||||
|
|
|
@ -8,7 +8,7 @@ Gem::Specification.new do |gem|
|
|||
gem.homepage = "http://sidekiq.org"
|
||||
gem.license = "LGPL-3.0"
|
||||
|
||||
gem.executables = ["sidekiq"]
|
||||
gem.executables = ["sidekiq", "sidekiqmon"]
|
||||
gem.files = `git ls-files | grep -Ev '^(test|myapp|examples)'`.split("\n")
|
||||
gem.name = "sidekiq"
|
||||
gem.version = Sidekiq::VERSION
|
||||
|
|
Loading…
Add table
Reference in a new issue