Blog » Blog Entry

Ruby gems sync list

December 7, 2006

If you need to sync up the installed Ruby gems on one machine with another you need a quick way to get the current gem list. Here's my simple script that does just that:

#!/bin/sh

for x in `gem list --local \
  | grep '(' \
  | sort \
  | awk 'BEGIN { FS = " " } { print $1 }'`; do
  echo "gem install $x"
done
Tags: ruby, gems

« Car Wreck Multi-threaded OpenGL WoW on Intel Macs »

Add a comment:

Title:

Comment:

Name:

Email: