wayneeseguin/rvm-capistrano — pull request #10 by MikeSchroll (2012-05-14 06:02:21+00:00)
Title: Supports sudo properly & sudo override option

Fixes system installs which need sudo.

Broke out the install command into two parts:
1. URL fetch
2. installation (execution part) - which sometimes needs sudo
This change Now properly supports sudo on the 2nd half. Before sudo was only executing on the fetch portion (which doesn't need to be sudo'd), and the install failed.

Also added option to override sudo false only for this one operation.
If you have use_sudo false in your deploy.rb (good thing), but you need it on only for this one rvm capistrano option, I introduce the new setting to be added to deploy.rb:
set :rvm_install_with_sudo, true