helm/install/rvm

38 lines
678 B
Plaintext
Raw Normal View History

2013-03-06 20:36:17 -08:00
#!/bin/bash
2013-03-16 21:16:00 -07:00
echo "[RVM]"
if [ ! `command -v "rvm"` ]; then
echo "\n* Installing RVM"
# https://rvm.io
curl -L https://get.rvm.io | bash -s stable --ruby
fi
2013-03-06 20:36:17 -08:00
# Ask for the administrator password upfront
sudo -v
# Keep sudo alive
while true; do sudo -n true; sleep 60; kill -0 "$$" || exit; done 2>/dev/null &
2013-03-16 21:16:00 -07:00
echo "\n* Install rubies"
2013-03-06 20:36:17 -08:00
# Install rubies and update rubygems
rvm install 1.9.3
rvm use 1.9.3
gem update --system
gem update
rvm install 1.8.7-p371
rvm use 1.8.7
gem update --system
gem update
# But ultimately, the system should be the default
rvm --default use system
# A few prerequisites
gem install bluecloth capistrano bundler
2013-03-16 21:16:00 -07:00
echo "\nDone!"