Created
August 2, 2011 13:25
-
-
Save DAddYE/1120171 to your computer and use it in GitHub Desktop.
Fast way to empty global gemset
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash -e | |
for ruby in $(rvm list strings) | |
do | |
echo -e "\e[32m======================================================\e[0m" | |
echo -e "\e[32mUsing ruby \e[1m$ruby\e[0m" | |
echo -e "\e[32m======================================================\e[0m" | |
cmd="rvm $ruby exec ""echo yes | rvm gemset empty""" | |
echo "Cleaning $ruby gems" | |
echo -e $cmd; $cmd | |
echo | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment