Sha256: 4c9650258fddad3dedd8e8a1c30fdf44a44e93391f66b36200996872fa63b5b8
Contents?: true
Size: 373 Bytes
Versions: 1
Compression:
Stored size: 373 Bytes
Contents
require 'rake' require 'multi_worker' # No-op task in case it doesn't already exist task :environment namespace :multi_worker do desc "Start a new worker for #{MultiWorker.default_adapter}" task work: :environment do rake_task = MultiWorker.adapter.rake_task rescue fail("No rake task available for #{MultiWorker.default_adapter}") rake_task.execute end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
multi_worker-0.2.0 | lib/multi_worker/tasks.rb |