adhearsion/adhearsion — pull request #66 by juandebravo (2012-01-15 11:37:48+00:00)
Title: Feature/named environments

Resolve the task https://www.pivotaltracker.com/story/show/9385141 considering:

* production, development, staging and test are the valid environment names.

* In the config file a environment may be considered but its not required, i.e.:

```
Adhearsion.configuration do |config|

config.punchblock.username = "bazz"

config.production do |env|
env.punchblock.username = 'bar'
end

config.development do |env|
env.punchblock.username = 'foo'
end

end
```

If environment is set to staging or test, Adhearsion.config.punchblock.username = "bazz"

* Considered the scenarios detailed in the task comments to update/no update the RAILS_ENV variable