module Procrastinator::Rake
Rake
tasks specific to Procrastinator
.
Provide this in your Rakefile:
require 'procrastinator/rake/task' Procrastinator::RakeTask.new do # return your Procrastinator::Scheduler here or construct it using Procrastinator.config end
And then you will be able to run rake tasks like:
bundle exec rake procrastinator:start