My goal is this: I have two computers and a jruby script which has a
of “require” statements in it. The script runs fine on computer one. My
goal is to get it to run on computer two such that I actually ship the
script and the gems that are required in the script (imagine computer
is a fresh install of jruby with no gems).
What is the easiest way to do this?
What I am thinking is to run the script in the first environment, see
gems are in the first environment, ship them over, and voila. First off,
Second: is there a way to see what gems are loaded in the current ruby
Third: given those gems, I believe I can do the following to get the
Gem::Specification.find_by_name(gem), but what files do I need to ship
over? If I tar and zip everything in .gem_dir, how can I make that
available on the second computer?
Does this make sense? Thanks for the help!