Sha256: b64bbfd2cd662438dabc54649047af540b1a547389574e7f60f1b9aeaac29754
Contents?: true
Size: 534 Bytes
Versions: 4
Compression:
Stored size: 534 Bytes
Contents
require 'rake' module ScheduledJob class Job include Rake::DSL if defined? Rake::DSL def install_tasks namespace:jobs do desc "Will schedule all scheduled jobs" task :reschedule => :environment do if ActiveRecord::Base.connection.table_exists?('delayed_jobs') ScheduledJob.reschedule else puts "Skipping this rake task as the delayed_jobs table doesn't exist yet." end end end end end end ScheduledJob::Job.new.install_tasks
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
scheduled_job-0.2.5 | lib/tasks/jobs.rb |
scheduled_job-0.2.4 | lib/tasks/jobs.rb |
scheduled_job-0.2.3 | lib/tasks/jobs.rb |
scheduled_job-0.1.3 | lib/tasks/jobs.rb |