Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Matt Gauger
committed
Apr 18, 2012
1 parent
0f49634
commit 6ac96a9
Showing
1 changed file
with
1 addition
and
17 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Original file line | Diff line number | Diff line change |
---|---|---|---|
@@ -1,17 +1 @@ | |||
#!/usr/bin/env bash | rvm use 1.9.2@idkfa --create | ||
|
|||
environment_id="ruby-1.9.2-p136@idkfa" | |||
|
|||
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \ | |||
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]] ; then | |||
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id" | |||
else | |||
# If the environment file has not yet been created, use the RVM CLI to select. | |||
rvm --create "$environment_id" | |||
fi | |||
|
|||
# Ensure that Bundler is installed, install it if it is not. | |||
if ! command -v bundle ; then | |||
printf "The rubygem 'bundler' is not installed, installing it now.\n" | |||
gem install bundler | |||
fi |