Skip to content

Instantly share code, notes, and snippets.

@jackdempsey
Created September 23, 2008 00:13
Show Gist options
  • Save jackdempsey/12183 to your computer and use it in GitHub Desktop.
Save jackdempsey/12183 to your computer and use it in GitHub Desktop.
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