igrigorik / em-jack

An Evented Beanstalk Client
http://dj2.github.com/jack
Other
64 stars 17 forks source link

Beanstalk connection strings (beanstalk://localhost:11300/default) #11

Closed bradgessler closed 12 years ago

bradgessler commented 12 years ago

In the spirit of Foreman (https://github.com/ddollar/foreman) and moving more configuration into ENV variables; I added support for URL connection strings to EMJack. This lets folks configure EM::Jack in multiple environments easier with something like:

EMJack::Connection.new(ENV['BEANSTALK_URL'])

and running that application with:

bundle exec bin/awesome_app BEANSTALK_URL=beanstalk://production.server:1337/production_tube
dj2 commented 12 years ago

Cool, merge. Thanks.