Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

44 lines (33 sloc) 0.92 kB
ruby18="ruby-1.8.7-p357"
ruby19="ruby-1.9.2-p0"
ruby18_full="${ruby18}@sicuro-gem"
ruby19_full="${ruby19}@sicuro-gem"
function find() {
[ -z "$(/bin/which ${1} 2>/dev/null)" ]
}
HAVE_RUBY18=true
HAVE_RUBY19=true
find "${ruby18}" || HAVE_RUBY18=false
find "${ruby19}" || HAVE_RUBY19=false
$HAVE_RUBY18 || rvm install "${ruby18}"
$HAVE_RUBY19 || rvm install "${ruby19}"
if [[ -n "$rvm_environments_path" && -s "$rvm_environments_path/${ruby19_full}" ]] ; then
. "$rvm_environments_path/${ruby19_full}"
else
rvm --create "${ruby19_full}"
fi
if [[ -n "$rvm_environments_path" && -s "$rvm_environments_path/${ruby18_full}" ]] ; then
. "$rvm_environments_path/${ruby18_full}"
else
rvm --create "${ruby18_full}"
fi
if [ ! $HAVE_RUBY18 ]; then
rvm use "${ruby18_full}"
gem install bundler
bundle install
fi
rvm use "${ruby19_full}"
if [ ! $HAVE_RUBY19 ]; then
gem install bundler
bundle install
fi
Jump to Line
Something went wrong with that request. Please try again.