Rake
note: This guide is now considered legacy and use of the new API is recommended. A high level guide to migrate to the new API can be found here.
Get an Auth Token
Generate an External Auth Token for your build server to use from your Raygun User Settings page
Install the Gem
Install the rake-raygun-deployment gem
gem install rake-raygun-deploymentOr if you are using Bundler
echo "gem 'rake-raygun-deployment'" >> Gemfile
bundle installUpdate code
Add the following to your Rakefile
require 'rake-raygun-deployment'
Rake::RaygunDeployment.new(:raygun_deployment) do
releasePath "RELEASE"
authToken "YOUR_EXTERNAL_AUTH_TOKEN"
apiKey "YOUR_APPLICATIONS_API_KEY"
endDeployment
When you are ready to deploy, create a release file in RELEASE (or whatever release path you have chosen) with the following format:
version: 6.0.0.0
ownerName: Jamie Penney
emailAddress: jamie@example.com
notes: |
# Testing out the rake plugin
* More markdown formatting
### JamieRun rake raygun_deployment to register your deployment with Raygun!