grantr/rubberband — Issue #31: Should support ELASTICSEARCH_URL env var for easier Heroku integration
Author: nz
Created: 2012-02-13 17:28:52+00:00
State: open

Hey @grantr,

There is an ElasticSearch addon now in alpha at Heroku which provides the ELASTICSEARCH_URL environment variable to specify to the app where the index lives. Is there a way for rubberband to facilitate easier integration for Heroku apps that use this value?

For instance, it would be convenient if rubberband could accept an unparsed string for the URL. An [RSolr](http://github.com/mwmitchell/rsolr)-esque approach might work well here:

```ruby
client = ElasticSearch.connect url: ENV['ELASTICSEARCH_URL']
```

Of course, working that into the initializer would be even nicer…

```ruby
client = ElasticSearch.new(ENV['ELASTICSEARCH_URL'])
```

Anyway, just thinking out loud here. What are your thoughts?

—Nick