airbrake/airbrake — Issue #50: Deploy Capistrano task (airbrake:deploy) does not work when using RVM capistrano integration + Bundler
Author: rweald
Created: 2012-02-08 23:01:54+00:00
State: open

Specifically the generated command:

```bash

rvm_path=$HOME/.rvm/ $HOME/.rvm/bin/rvm-shell 'ree-1.8.7-2011.12' -c 'cd /path/to/application/releases/20120208194411; rake RAILS_ENV=acceptance airbrake:deploy TO=acceptance REVISION= REPO=git@github.com:/.git USER='

```

RVM is integrated into the deploy file as follows

```ruby

$:.unshift(File.expand_path('./lib', ENV['rvm_path']))
require 'rvm/capistrano'
set(:rvm_ruby_string) { "#{rvm_ruby}@#{rvm_gemset}" }

```

Thanks