Repository is archived
No commit activity in last 3 years
No release in over 3 years
Heroku config/addons validator for multiple apps. It checks addons / config varibales etc
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.5
~> 10.1
>= 0

Runtime

 Project Readme

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

  1. Fork it ( http://github.com/quipper/heroku_formation_validator/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request