Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 49 lines (41 sloc) 1.528 kb
9f4f47d - Commonly customers using RVM and Ruby 1.9.2 will rake test in
Scott M. Likens authored
1 #!/usr/bin/env bash
2
3 # This is an RVM Project .rvmrc file, used to automatically load the ruby
4 # development environment upon cd'ing into the directory
5
6 # First we specify our desired <ruby>[@<gemset>], the @gemset name is optional.
f058037 switching to ree
Ben Lindsey authored
7 environment_id="ree-1.8.7-2011.03"
9f4f47d - Commonly customers using RVM and Ruby 1.9.2 will rake test in
Scott M. Likens authored
8
9 #
10 # First we attempt to load the desired environment directly from the environment
11 # file. This is very fast and efficicent compared to running through the entire
12 # CLI and selector. If you want feedback on which environment was used then
13 # insert the word 'use' after --create as this triggers verbose mode.
14 #
15 if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
16 && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
17 then
18 \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
19
20 if [[ -s ".rvm/hooks/after_use" ]]
21 then
22 . ".rvm/hooks/after_use"
23 fi
24 else
25 # If the environment file has not yet been created, use the RVM CLI to select.
26 if ! rvm --create "$environment_id"
27 then
28 echo "Failed to create RVM environment ''."
29 fi
30 fi
31
32 #
33 # If you use an RVM gemset file to install a list of gems (*.gems), you can have
34 # it be automatically loaded. Uncomment the following and adjust the filename if
35 # necessary.
36 #
37 # filename=".gems"
38 # if [[ -s "$filename" ]] ; then
39 # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
40 # fi
41
42 #
43 # If you use bundler and would like to run bundle each time you enter the
44 # directory, you can uncomment the following code.
45 #
46 # export PATH="./bin:$PATH"
47 #
48
Something went wrong with that request. Please try again.