Find file
Fetching contributors…
Cannot retrieve contributors at this time
25 lines (20 sloc) 579 Bytes
#!/usr/bin/env bash
environment_id="ruby-1.9.2-p290@simplewiki"
if [[ -d "${rvm_path:-$HOME/.rvm}/environments" \
&& -s "${rvm_path:-$HOME/.rvm}/environments/$environment_id" ]]
then
\. "${rvm_path:-$HOME/.rvm}/environments/$environment_id"
if [[ -s ".rvm/hooks/after_use" ]]
then
. ".rvm/hooks/after_use"
fi
else
if ! rvm --create "$environment_id"
then
echo "Failed to create RVM environment ''."
fi
fi
if ! command -v bundle >/dev/null; then
printf "The rubygem 'bundler' is not installed. Installing it now.\n"
gem install bundler --pre
fi