Don't reinstall ruby n times on each machine, where n is the number of machines.  Install it once on each machine in parallel.