rvmでは以前のでうまくいったけど、rbenvでうまくいかなかったので改良しました。
gem_uninstall_all
#!/usr/bin/env ruby
gem_list = `gem list --no-version`
gem_list.each_line do |line|
next if line.empty? || /LOCAL GEMS/ =~ line
system "gem uninstall -axI #{line}"
end
Go to list of users who liked
More than 5 years have passed since last update.
rvmでは以前のでうまくいったけど、rbenvでうまくいかなかったので改良しました。
#!/usr/bin/env ruby
gem_list = `gem list --no-version`
gem_list.each_line do |line|
next if line.empty? || /LOCAL GEMS/ =~ line
system "gem uninstall -axI #{line}"
end
Register as a new user and use Qiita more conveniently
Go to list of users who liked