Integrates sneakers into your rails application with no headache.
Add this line to your application's Gemfile:
gem 'sneakers_rails'
And then execute:
$ bundle
Or install it yourself as:
$ gem install sneakers_rails
- Run `rails g sneakers_rails:install` to install sneakers into your application
- Go to `config/initializers/sneakers.rb` and edit the file with your rabbitMQ config
- Run `rails g sneakers_rails:worker [WORKERNAME] [QUEUENAME]`
- `Sneakers.publish([SERIALIZED MESSAGE],:routing_key=>[QUEUENAME])`
You'll need to expose the worker classes you want to run
- Run WORKERS=WebScraper rake sneakers:run
Bug reports and pull requests are welcome on GitHub at: https://github.com/essamhassan/sneakers-rails
The gem is available as open source under the terms of the MIT License.