Take a look at the Bundler .
You can save the list of required stones in the Gemfile, and then run bundle install on each machine before starting the build. This will install all the gems in the Gemfile (and you can lock the gems for a specific version, also including the Gemfile.lock file).
Jamie penney
source share