Cymen Vig

Software Craftsman

Quick PHP script to generate gem installation commands

Sometimes one needs to replicate one gem environment to another host. Maybe there is a ruby way to do this but here is a quick script that runs “gem list” and then makes a list of “gem install PACKAGE -v VERSION” commands. It’s quick and dirty but maybe it’ll be useful for you too: