Class: Sidekiq::Prometheus::Exporter::Cron
- Inherits:
-
Object
- Object
- Sidekiq::Prometheus::Exporter::Cron
- Defined in:
- lib/sidekiq/prometheus/exporter/cron.rb
Constant Summary collapse
- TEMPLATE =
ERB.new(File.read(File.('templates/cron.erb', __dir__)))
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize ⇒ Cron
constructor
A new instance of Cron.
- #to_s ⇒ Object
Constructor Details
Class Method Details
.available? ⇒ Boolean
12 13 14 |
# File 'lib/sidekiq/prometheus/exporter/cron.rb', line 12 def self.available? defined?(Sidekiq::Cron) end |
Instance Method Details
#to_s ⇒ Object
20 21 22 |
# File 'lib/sidekiq/prometheus/exporter/cron.rb', line 20 def to_s TEMPLATE.result(binding).chomp! end |