Skip to content
This repository has been archived by the owner on Jun 29, 2023. It is now read-only.

Latest commit

 

History

History
55 lines (38 loc) · 1.19 KB

README.md

File metadata and controls

55 lines (38 loc) · 1.19 KB

Deis Deploy Ruby

Gem Version

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