activemessaging
activemessaging copied to clipboard
Poller.rb via Rake
This requires that Rails.root be setup ahead of time, which is generally a safe assumption in Rails 3 (Bundler does it) or Rails 2.3 patched to run using Bundler.
You could also reject this and suggest that the environment loading should be handled by Rake, and do a check in the poller.rb for that.
$ bundle exec rake development activemessaging:start_consumers
Depends how you'd like it to work, I'm fine with either.