Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
RVM / Capistrano Integration Gem
Ruby

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/rvm
spec
.gitignore
History.md
LICENSE
Manifest.yml
README.md
Rakefile
rvm-capistrano.gemspec

README.md

rvm-capistrano

https://rvm.io/integration/capistrano/#gem

Description

RVM / Capistrano Integration Gem

Installation

RVM / Capistrano integration is now available as a separate gem

$ gem install rvm-capistrano

Example

The following code will:

  • detect ruby@gemset used for deployment
  • install RVM and Ruby on cap deploy:setup

Example:

set :rvm_ruby_string, ENV['GEM_HOME'].gsub(/.*\//,"")
set :rvm_install_ruby_params, '--1.9'      # for jruby/rbx default to 1.9 mode

before 'deploy:setup', 'rvm:install_rvm'   # install RVM
before 'deploy:setup', 'rvm:install_ruby'  # install Ruby and create gemset, or:
before 'deploy:setup', 'rvm:create_gemset' # only create gemset

require "rvm/capistrano"

To use the ruby version currently active locally

set :rvm_ruby_string, :local

Development

$ rake spec
Something went wrong with that request. Please try again.