helm/install/rvm

40 lines
840 B
Plaintext
Raw Normal View History

2013-03-22 18:06:04 -07:00
#!/usr/bin/env zsh
2013-03-06 20:36:17 -08:00
2013-03-23 02:19:12 -07:00
export rvm_ignore_dotfiles=yes
if ! command_exists rvm; then
# If RVM's not installed, install it and the rubies
echo-g "==> Rvm: Installing"
2013-03-16 21:16:00 -07:00
# https://rvm.io
2013-03-23 02:19:12 -07:00
curl -L https://get.rvm.io | bash -s stable --ruby
fi
# Update it
# Make sure rvm is sourced properly
if [ -f ~/.rvm/scripts/rvm ]; then
[ "$(type rvm | grep function)" ] || source ~/.rvm/scripts/rvm
fi
2013-03-16 21:16:00 -07:00
# Update RVM
2013-05-05 15:15:51 -07:00
# echo-g "==> Rvm: Updating"
# rvm get stable
# Update all rubies and rubygems
echo-g "==> Rvm: Updating rubies"
rvm all do gem update --system
rvm all do gem update
rvm all do gem install bluecloth bundler colorize
2013-03-23 00:49:19 -07:00
# Only mac needs this
if is_mac; then
# Update system ruby
echo-g "==> Rvm: Updating system ruby"
rvm use system
sudo gem update --system
sudo gem update
fi
echo-g "==> Rvm: DONE!"