It is probably best I don’t bother explaining how or why I ended up wanting to reference an existing Gemfile from another Gemfile, but suffice to say it is something I sort of needed to do. After a bit of searching I came across the following post,
http://madebynathan.com/2010/10/19/how-to-use-bundler-with-plugins-extensions/
.
The most relevant bit is the use of eval like below in the Gemfile you want to include another Gemfile in.
filename="..." eval(IO.read(filename), binding)