Created
November 16, 2011 20:26
-
-
Save atoulme/1371263 to your computer and use it in GitHub Desktop.
rvmrc_buildr
This file contains hidden or 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
error: Gemset 'buildr' does not exist, rvm gemset create 'buildr' first. | |
info: Using jruby 1.6.5 with gemset buildr | |
Installing bundler... | |
Fetching: bundler-1.0.21.gem (100%) | |
Successfully installed bundler-1.0.21 | |
1 gem installed | |
Installing ri documentation for bundler-1.0.21... | |
Installing RDoc documentation for bundler-1.0.21... | |
Fetching source index for http://rubygems.org/ | |
Could not find gem 'buildr (>= 0) ruby' in source at .. | |
Source contains 'buildr' at: 1.4.6 |
This file contains hidden or 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
#!/usr/bin/env bash | |
ruby_string="${BUILDR_RUBY_VERSION:-ruby-1.9.2}" | |
bundler_gem_home="vendor/bundle" | |
if rvm list strings | grep -q "${ruby_string}" ; then | |
rvm use "${ruby_string}@buildr" | |
gem list | grep 'bundler' &> /dev/null | |
if [ $? -gt 0 ]; then | |
echo "Installing bundler..." | |
gem install bundler | |
fi | |
bundle install | |
else | |
echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory." | |
fi |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment