Sha256: 9201fa30d5b28bee2d2ba4af6ef8ba5c7acb9f469ede35cd297dd2bc73d33390
Contents?: true
Size: 545 Bytes
Versions: 7
Compression:
Stored size: 545 Bytes
Contents
# vim:fileencoding=utf-8 require 'English' require 'resque/tasks' require 'resque_scheduler' namespace :resque do task :setup def scheduler_cli @scheduler_cli ||= ResqueScheduler::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 unless scheduler_cli.pre_setup Rake::Task['resque:setup'].invoke end end end
Version data entries
7 entries across 7 versions & 1 rubygems