Mac/deb-specific functionality

This commit is contained in:
Henrik Lissner 2013-03-23 03:49:19 -04:00
parent dcfc4856af
commit dac6aa56b2

View file

@ -12,8 +12,12 @@ if ! command_exists rvm; then
rvm install 1.8.7 rvm install 1.8.7
rvm install 2.0.0 rvm install 2.0.0
if is_mac; then
# But ultimately, the system should be the default # But ultimately, the system should be the default
rvm --default use system rvm --default use system
else
rvm --default use 2.0.0
fi
# A few prerequisites # A few prerequisites
sudo gem install bluecloth capistrano bundler colorize sudo gem install bluecloth capistrano bundler colorize
@ -35,11 +39,14 @@ echo-g "==> Rvm: Updating rubies"
rvm all do gem update --system rvm all do gem update --system
rvm all do gem update rvm all do gem update
# Update system ruby # Only mac needs this
echo-g "==> Rvm: Updating system ruby" if is_mac; then
rvm use system # Update system ruby
sudo gem update --system echo-g "==> Rvm: Updating system ruby"
sudo gem update rvm use system
sudo gem update --system
sudo gem update
fi
echo-g "==> Rvm: Cleaning up" echo-g "==> Rvm: Cleaning up"
rvm cleanup all rvm cleanup all