Permalink
Find file
Fetching contributors…
Cannot retrieve contributors at this time
20 lines (15 sloc) 527 Bytes
#!/usr/bin/env bash
ruby_string="ree-1.8.7-2011.03"
gemset_name="potential_friend_finder"
if rvm list strings | grep -q "${ruby_string}" ; then
rvm use "${ruby_string}@${gemset_name}" --create
# Complain if bundler isn't installed
if [[ -z "`gem which bundler 2>&1 | grep -v ERROR`" ]]; then
echo "You need bundler:"
echo ""
echo " gem install bundler"
echo ""
fi
else
echo "${ruby_string} was not found, please run 'rvm install ${ruby_string}' and then cd back into the project directory."
fi