Created
September 23, 2008 00:13
-
-
Save jackdempsey/12183 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
desc 'wipe', 'Uninstall all RubyGems related to Merb' | |
def wipe | |
windows = PLATFORM =~ /win32|cygwin/ rescue nil | |
sudo = windows ? "" : "sudo" | |
`gem list merb`.split("\n").each do |line| | |
next unless line =~ /^(merb[^ ]+)/ | |
system("#{sudo} gem uninstall #{$1} -a -I -x; true") | |
end | |
system("#{sudo} gem uninstall extlib -a -I -x") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment