Skip to content

Instantly share code, notes, and snippets.

@DAddYE
Created August 2, 2011 13:25
Show Gist options
  • Save DAddYE/1120171 to your computer and use it in GitHub Desktop.
Save DAddYE/1120171 to your computer and use it in GitHub Desktop.
Fast way to empty global gemset
#!/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