Pagerage
Coming soon!
Local Development
- assumes you have a local, empty postgres db named 'pagerage'
- assumes you have a pagerduty login and password
$ export PAGERDUTY_BASE_URL=https://user%40domain.com:[email protected]/api/v1
$ bundle exec shotgun
$ open http://localhost:9393
Heroku Setup
$ heroku create
$ heroku addons:add heroku-postgress:crane
$ heroku pg:promote <color>
$ heroku config:add PAGERDUTY_BASE_URL=https://user%40domain.com:[email protected]/api/v1
$ git push heroku master
Fetching Incidents
We currently only fetch the most recent incidents over the past 24 hours. Clearly this needs to be optimized, but it is good enough to move forward with.
$ bundle exec rake fetch
The above command will return an integer representing the amount of new incidents.
Running Tests
Tests are mostly standard RSpec. Run them:
$ bundle exec rake
Contributing
- Fork it
- 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