Ruby script to install bulk gems

Published on Author Akhil Bansal6 Comments

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.

6 Responses to Ruby script to install bulk gems

  1. Hi there, simply changed into aware of your blog thru Google, and found that it is really informative. I’m going to watch out for brussels. I’ll be grateful if you happen to continue this in future. A lot of other people can be benefited out of your writing. Cheers!

Leave a Reply

Your email address will not be published. Required fields are marked *