-
-
Save wayneeseguin/1120180 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 | |
# | |
# This script will empty all RVM default gemsets in parallel. | |
# | |
rubies=($(rvm list strings)) | |
echo "Emptying default gemsets for rubies: ${rubies[*]}"; | |
for ruby in "${rubies[@]}" | |
do | |
( | |
rvm use $ruby; | |
rvm --force gemset empty; | |
)& | |
done | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment