Mac/deb-specific functionality
This commit is contained in:
parent
dcfc4856af
commit
dac6aa56b2
21
install/rvm
21
install/rvm
|
@ -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
|
||||||
|
|
||||||
# But ultimately, the system should be the default
|
if is_mac; then
|
||||||
rvm --default use system
|
# But ultimately, the system should be the default
|
||||||
|
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
|
||||||
|
|
Loading…
Reference in a new issue