casualjim
6/2/2011 - 2:02 PM

baseline rvmrc file

baseline rvmrc file

export RUBYOPT="rubygems"

rvm_install_on_use_flag=1


if [ -z $(rvm gemset list | grep virtmachines) 2> /dev/null ]; then
  rvm ruby-1.8.7
  rvm gemset create virtmachines
fi
rvm ruby-1.8.7@virtmachines

if ! command -v vagrant ; then
  [ ! $(command -v bundle) ] && gem install bundler
  if [ ! -f ./Gemfile ]; then
    bundle init
    echo "gem \"vagrant\"" >> ./Gemfile
  fi
  bundle install
fi