Class: MandrillQueue::Generators::WorkerGenerator
- Inherits:
-
Rails::Generators::Base
- Object
- Rails::Generators::Base
- MandrillQueue::Generators::WorkerGenerator
- Defined in:
- lib/rails/generators/mandrill_queue/worker_generator.rb
Instance Method Summary collapse
Instance Method Details
#create_worker_file ⇒ Object
9 10 11 12 13 14 |
# File 'lib/rails/generators/mandrill_queue/worker_generator.rb', line 9 def create_worker_file copy_file 'worker.rb', "./worker.rb" puts 'Worker created! You can run it with the following command:' puts 'cd worker; QUEUES=mailer rake resque:work -r ./worker.rb' end |