fastestforward/heroku_san — pull request #69 by spraints (2012-01-26 20:25:38+00:00)
Title: Addons

These commits add the ability to specify addons in the heroku.yml config, and install the addons with heroku_san. For addons that need configuration (like deployhooks:campfire), the configuration URL is shown in the rake output. You run it like other heroku_san tasks: `rake qa heroku:addons`.

Here's how you could configure it:

```yaml
qa:
app: awesome-qa
stack: 'cedar'
addons: &addons
- deployhooks:campfire
- logging:basic
- loggly:mole
- newrelic:standard
- releases:basic
- sendgrid:starter
config:
RACK_ENV: qa
RAILS_ENV: qa

beta:
app: awesome-beta
stack: 'cedar'
addons:
- *addons
- ssl:piggyback
config:
RACK_ENV: beta
RAILS_ENV: beta

production:
app: awesome
stack: 'cedar'
addons:
- beta_addons
- custom_domains:basic
- ssl:hostname
config:
RACK_ENV: production
RAILS_ENV: production
```

```
>>> rake qa heroku:addons
-----> Adding loggly:mole...
(etc)
Installed addons:
* cloudant:oxygen
* deployhooks:campfire
* logging:basic
* loggly:mole
* newrelic:standard
* releases:basic
* sendgrid:starter
* shared-database:5mb
Addon deployhooks:campfire needs to be configured at https://api.heroku.com/myapps/awesome-qa/addons/deployhooks:campfire

```