Sha256: 91a8d2f03ecfa40c22126a457305afdfb5534009c48e4ccc0f127e311be2bcea
Contents?: true
Size: 609 Bytes
Versions: 2
Compression:
Stored size: 609 Bytes
Contents
# vim:fileencoding=utf-8 require 'resque_admin/tasks' require 'resque_admin-scheduler_admin' namespace :resque_admin do task :setup def scheduler_admin_cli @scheduler_admin_cli ||= ResqueAdmin::Scheduler::Cli.new( %W(#{ENV['RESQUE_SCHEDULER_OPTIONS']}) ) end desc 'Start ResqueAdmin Scheduler' task scheduler_admin: :scheduler_admin_setup do scheduler_admin_cli.setup_env scheduler_admin_cli.run_forever end task :scheduler_admin_setup do scheduler_admin_cli.parse_options Rake::Task['resque_admin:setup'].invoke unless scheduler_admin_cli.pre_setup end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
resque-admin-scheduler-1.3.0 | lib/resque/scheduler_admin/tasks.rb |
resque-admin-scheduler-4.3.0 | lib/resque/scheduler_admin/tasks.rb |