Folks.
I'm using Bundler version 1.3.4. I am looking for a solution to
specifying the location of the gem server outside of the Gemfile.
For my current use case a developer will create a Gemfile/Gemfile.lock
which contain a line like this
source '
https://rubygems.org'
These files then get committed to source control and then distributed
to the various servers using puppet (a configuration management
tool). When the files get published to the servers it triggers a
'bundle install' against the particular Gemfile/Gemfile.lock. The
problem is these servers don't actually have access to 'https://
rubygems.org' as we have an internal gem server.
I tried creating an /etc/gemrc and ~/.gemrc file which contains the
location of our internal gem server
---
:sources:
-
http://gems.my.domain.net
But this file does not seem so get used by 'bundle install'.
So any tips on how I can solve this problem to ensure the same Gemfile/
Gemfile.lock that is used on a workstation with internet access will
work on a server that does not have internet access.
Ideally some tip on how to specify the actual gem server in an
location that is used by bundler which is outside the common Gemfile/
Gemfile.lock.
TIA. Derek.