Sha256: 678b42537f2c1930edb1528fe8bcbb13d65618ebd0d9167c5d7466cb10e31c49
Contents?: true
Size: 481 Bytes
Versions: 1
Compression:
Stored size: 481 Bytes
Contents
# require 'resque/tasks' # will give you the resque tasks namespace :resque do task :setup desc "Start Resque Scheduler" task :scheduler => :scheduler_setup do require 'resque' require 'resque_scheduler' Resque::Scheduler.verbose = true if ENV['VERBOSE'] Resque::Scheduler.run end task :scheduler_setup do if ENV['INITIALIZER_PATH'] load ENV['INITIALIZER_PATH'].to_s.strip else Rake::Task['resque:setup'].invoke end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-scheduler-1.9.10 | lib/resque_scheduler/tasks.rb |