summaryrefslogtreecommitdiff
path: root/.rvmrc
diff options
context:
space:
mode:
Diffstat (limited to '.rvmrc')
-rw-r--r--.rvmrc49
1 files changed, 49 insertions, 0 deletions
diff --git a/.rvmrc b/.rvmrc
new file mode 100644
index 0000000..f879d68
--- /dev/null
+++ b/.rvmrc
@@ -0,0 +1,49 @@
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.
7environment_id="ruby-1.9.2-p136@hv_snowreport"
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#
15if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
16 && -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then
17 \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
18
19 [[ -s "$rvm_path/hooks/after_use" ]] && . "$rvm_path/hooks/after_use"
20else
21 # If the environment file has not yet been created, use the RVM CLI to select.
22 rvm --create "$environment_id"
23fi
24
25#
26# If you use an RVM gemset file to install a list of gems (*.gems), you can have
27# it be automatically loaded. Uncomment the following and adjust the filename if
28# necessary.
29#
30# filename=".gems"
31# if [[ -s "$filename" ]] ; then
32# rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
33# fi
34
35#
36# If you use bundler and would like to run bundle each time you enter the
37# directory, you can uncomment the following code.
38#
39# # Ensure that Bundler is installed. Install it if it is not.
40# if ! command -v bundle >/dev/null; then
41# printf "The rubygem 'bundler' is not installed. Installing it now.\n"
42# gem install bundler
43# fi
44#
45# # Bundle while reducing excess noise.
46# printf "Bundling your gems. This may take a few minutes on a fresh clone.\n"
47# bundle | grep -v '^Using ' | grep -v ' is complete' | sed '/^$/d'
48#
49