Sha256: fa3c7b1e07d27aab182f4fcf8c8ebb6045fe889299f5198d4f2844665462744d
Contents?: true
Size: 635 Bytes
Versions: 2
Compression:
Stored size: 635 Bytes
Contents
class Recipes::Schedule < Rails::AppBuilder def ask if selected?(:background_processor) response = answer(:schedule) { Ask.confirm("Do you need to schedule jobs?") } end set(:schedule, response) end def create if selected?(:schedule) gather_gem 'sidekiq-scheduler', '>= 3.0.1' add_readme_section :internal_dependencies, :sidekiq_scheduler end template '../assets/sidekiq_scheduler.yml', 'config/sidekiq.yml', force: true end def install set(:schedule, true) create end def installed? gem_exists?(/sidekiq-scheduler/) && file_exist?('config/sidekiq.yml') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
potassium-6.1.0 | lib/potassium/recipes/schedule.rb |
potassium-6.0.0 | lib/potassium/recipes/schedule.rb |