Sha256: 8e0415514f129cabfc083eabb865ce75f2006ed7beaadd5f1e64b50a9029d37b
Contents?: true
Size: 533 Bytes
Versions: 1
Compression:
Stored size: 533 Bytes
Contents
# vim:fileencoding=utf-8 require 'English' require 'resque/tasks' require 'resque-scheduler' namespace :resque do task :setup def scheduler_cli @scheduler_cli ||= Resque::Scheduler::Cli.new( %W(#{ENV['RESQUE_SCHEDULER_OPTIONS']}) ) end desc 'Start Resque Scheduler' task scheduler: :scheduler_setup do scheduler_cli.setup_env scheduler_cli.run_forever end task :scheduler_setup do scheduler_cli.parse_options Rake::Task['resque:setup'].invoke unless scheduler_cli.pre_setup end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resque-scheduler-3.0.0 | lib/resque/scheduler/tasks.rb |