class Sidekiq::Cron::Tasks::Configuration
Attributes
file[RW]
prefix[RW]
Public Class Methods
new()
click to toggle source
# File lib/sidekiq/cron/tasks/configuration.rb, line 7 def initialize @file = ::Rails.root.join("config", "sidekiq_cron.yml") @prefix = "sidekiq_cron" end
Public Instance Methods
schedule()
click to toggle source
# File lib/sidekiq/cron/tasks/configuration.rb, line 16 def schedule @schedule ||= File.exist?(file) ? YAML.load_file(file).fetch(::Rails.env, {}) : {} end