Dev/Ruby
[Ruby] Remove all gems
공대나왔음
2018. 4. 20. 12:41
Using gem command
gem uninstall --all
Using batch file
ruby -e "`gem list`.split(/$/).each { |line| puts `gem uninstall -Iax #{line.split(' ')[0]}` unless line.empty? }"