Sha256: bc6174c408d051d5bca4ff36b2ed49b6d05b088086ac5a8fbcec3c37cb6150a0
Contents?: true
Size: 549 Bytes
Versions: 6
Compression:
Stored size: 549 Bytes
Contents
# vim:fileencoding=utf-8 require 'resque_admin/tasks' require 'resque_admin-scheduler' namespace :resque_admin 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_admin:setup'].invoke unless scheduler_cli.pre_setup end end
Version data entries
6 entries across 4 versions & 2 rubygems