Sha256: 5ac4def83d5779a9a6b4829df37c2c7096c5608988c830b0ea35b01528c85987

Contents?: true

Size: 342 Bytes

Versions: 3

Compression:

Stored size: 342 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
          ScheduledJob.reschedule
        end
      end
    end
  end
end

ScheduledJob::Job.new.install_tasks

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
scheduled_job-0.1.2 lib/tasks/jobs.rb
scheduled_job-0.1.1 lib/tasks/jobs.rb
scheduled_job-0.1.0 lib/tasks/jobs.rb