Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 48 lines (41 sloc) 1.791 kb
b4b9bfb Yoshinori Hirasawa 初回コミット。
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.
7 environment_id="ruby-1.9.2-head@sample-jpmobile"
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" ]] ; then
17 \. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
18 else
19 # If the environment file has not yet been created, use the RVM CLI to select.
20 rvm --create use "$environment_id"
21 fi
22
23 #
24 # If you use an RVM gemset file to install a list of gems (*.gems), you can have
25 # it be automatically loaded. Uncomment the following and adjust the filename if
26 # necessary.
27 #
28 # filename=".gems"
29 # if [[ -s "$filename" ]] ; then
30 # rvm gemset import "$filename" | grep -v already | grep -v listed | grep -v complete | sed '/^$/d'
31 # fi
32
33 #
34 # If you use bundler and would like to run bundle each time you enter the
35 # directory, you can uncomment the following code.
36 #
37 # # Ensure that Bundler is installed. Install it if it is not.
38 # if ! command -v bundle >/dev/null; then
39 # printf "The rubygem 'bundler' is not installed. Installing it now.\n"
40 # gem install bundler
41 # fi
42 #
43 # # Bundle while reducing excess noise.
44 # printf "Bundling your gems. This may take a few minutes on a fresh clone.\n"
45 # bundle | grep -v '^Using ' | grep -v ' is complete' | sed '/^$/d'
46 #
47
Something went wrong with that request. Please try again.