sumitasok
4/13/2012 - 4:00 AM

.rvmrc Project specific for Rails

.rvmrc Project specific for Rails

#!/usr/bin/env bash

environment_id="ruby@gemset"

if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
  && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
  \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"

  [[ -s ".rvm/hooks/after_use" ]] && . ".rvm/hooks/after_use"
else
  # If the environment file has not yet been created, use the RVM CLI to select.
  rvm --create  "$environment_id"
fi