Deis Deploy Ruby
This gem allows you to deploy and notify your deploy to the Red Ant Deis cluster.
If you're not a developer at Red Ant this gem will not be immediately useful but may be a nice starting point for Deis deploy notifications.
Pre-requisites
-
deis
executable signed in to the Red Ant deis cluster - permissions on the deis app your're trying to deploy
- a valid git remote to your deis app, defaults to a git remote called 'deis'
- the app created in the deis-billing portal
Setup
In your Gemfile
gem 'deis_deploy_redant'
Create an initialiser to configure the gem
# config/initializers/deis_deploy.rb
DeisDeployRedant.configure do |config|
config.billing_app_url = 'http://example.com' # checkout the Deis playbook for the url
config.deploy_message_merges = true
end
To deploy
$ bundle exec rails deis:deploy[REMOTE_NAME]
Or to notify without pushing a new deploy
$ bundle exec rails deis:report[REMOTE_NAME]
Tests
$ rspec