Class: MandrillQueue::Generators::WorkerGenerator

Inherits:
Rails::Generators::Base
  • Object
show all
Defined in:
lib/rails/generators/mandrill_queue/worker_generator.rb

Instance Method Summary collapse

Instance Method Details

#create_worker_fileObject



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