Recently I had to setup many rails servers and for that I had to install some gems again and again by issuing traditional “gem install xyz” command several times. This was actually very annoying.

To avoid issuing “gem install xyz” command again and again, while setting up new machine, I wrote a utility script in ruby. This script read a list of gems and install them by avoiding ri and rdoc installation for gem.

This script saved lots of my time. Here is the Ruby script to install bulk gems, if you would like to give it a try.

Download this script and save as .rb. Run this script by “ruby install_gems.rb” and follow the instructions on screen.