Permalink
Browse files

simplify rvm config

  • Loading branch information...
1 parent 07b155f commit 8482627483418c35f6bcd598e88e80e7f602ca8c @bcm bcm committed Jul 5, 2011
Showing with 1 addition and 29 deletions.
  1. +1 −29 .rvmrc
View
30 .rvmrc
@@ -1,31 +1,3 @@
#!/usr/bin/env bash
-ruby_string="ruby-1.9.2"
-gemset_name="jsend-rails"
-
-if rvm list strings | grep -q "${ruby_string}" ; then
-
- # Load or create the specified environment
- if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
- && -s "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}" ]] ; then
- \. "${rvm_path:-$HOME/.rvm}/environments/${ruby_string}@${gemset_name}"
- else
- rvm --create "${ruby_string}@${gemset_name}"
- fi
-
- (
- # Ensure that Bundler is installed, install it if it is not.
- if ! command -v bundle ; then
- gem install bundler
- fi
-
- # Bundle while redcing excess noise.
- bundle | grep -v 'Using' | grep -v 'complete' | sed '/^$/d'
- )&
-
-else
-
- # Notify the user to install the desired interpreter before proceeding.
- echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory."
-
-fi
+rvm use "ruby-1.9.2@jsend-rails"

0 comments on commit 8482627

Please sign in to comment.