Sha256: 192cf25198cc91bf2491e255b23a6dd0f272670d0c905de92d0ac1a644adca2f
Contents?: true
Size: 531 Bytes
Versions: 1
Compression:
Stored size: 531 Bytes
Contents
# vim:fileencoding=utf-8 require 'resque-admin/tasks' require 'resque-scheduler' namespace :resque do task :setup def scheduler_cli @scheduler_cli ||= ResqueAdmin::Scheduler::Cli.new( %W(#{ENV['RESQUE_SCHEDULER_OPTIONS']}) ) end desc 'Start ResqueAdmin 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_admin-scheduler-1.0.3 | lib/resque-admin/scheduler/tasks.rb |