Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Capistrano integration #27

Merged
merged 1 commit into from
Mar 8, 2013
Merged

Capistrano integration #27

merged 1 commit into from
Mar 8, 2013

Conversation

dmeremyanin
Copy link
Contributor

This PR implements deploy tracking with capistrano.
Simply add to deploy.rb:

require 'rollbar/capistrano'
set :rollbar_token, 'your token'

It will send POST to the deploy endpoint (via Net::HTTP) after each deploy.

Available options:

  • rollbar_token - project access token, required
  • rollbar_env - deploy environment, rails_env by default

For capistrano/multistage it can be useful:

set(:rollbar_env) { stage }

@brianr
Copy link
Member

brianr commented Mar 8, 2013

Nice, thanks! Testing and reviewing this now.

Is it possible to grab the rollbar_token from Rollbar.configuration.access_token? (It'll be there as long as the Rails environment has been initialized, and it has been set in config/initializers/rollbar.rb)

@ghost ghost assigned brianr Mar 8, 2013
@dmeremyanin
Copy link
Contributor Author

Current implementation doesn't initialize rails environment (for performance reasons), that is why setting rollbar_token is needed.

@brianr brianr merged commit e46cac1 into rollbar:master Mar 8, 2013
@brianr
Copy link
Member

brianr commented Mar 8, 2013

Works great, merged. I've also pushed a new version of the gem (0.9.2) to rubygems, updated the readme, and added you to the THANKS list. Thanks again!

@dmeremyanin
Copy link
Contributor Author

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants