Heroku Formation Validator
Installation
$ gem install heroku_formation_validator
Usage
Create your formation.yml
auth:
user: <heroku email address>
token: <heroku token>
common:
addons:
- "newrelic:stark"
- "redistogo:mini"
- "scheduler:standard"
- "sendgrid:bronze"
variables:
MONGO_DATABASE: "ABC"
papertrail: true
groups:
api:
apps:
- <your-app-name-1>
- <your-app-name-2>
variables:
- YOUR_VARIABLE: "ABC"
cms:
apps:
- <your-app-name-3>
variables:
- YOUR_VARIABLE: "ABC"
Run it (Usually, in CI)
$ heroku_formation_validator formation.yml
- When no errors, you will get nothing with exit code 0
- When errors, You will get errors with exit code 1
=== api <your-app-name1> ===
Addons: "scheduler:standard" is not installed
=== api <your-app-name2> ===
Addons: "scheduler:standard" is not installed
Papertrail: not set in logdrains
=== cms <your-app-name3> ===
Addons: "sendgrid:bronze" is not installed
Addons: "redistogo:small" is not installed
Contributing
- Fork it ( http://github.com/quipper/heroku_formation_validator/fork )
- Create your feature branch (
git checkout -b my-new-feature
)
- Commit your changes (
git commit -am 'Add some feature'
)
- Push to the branch (
git push origin my-new-feature
)
- Create new Pull Request