summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2016-02-02 10:36:36 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2016-02-09 09:16:06 -0800
commit1d063284f755b996a6563d7210496afd716a9f2d (patch)
tree52d7ad076704b5ca12c62d02933827a85e4a9801 /lib/chef/cookbook
parentaa74c0ac58393e9186c2ebecbc3144c2c8d2ee85 (diff)
downloadchef-1d063284f755b996a6563d7210496afd716a9f2d.tar.gz
make rubygems.org configurable
for bonus points gem_package will pick this up as well.
Diffstat (limited to 'lib/chef/cookbook')
-rw-r--r--lib/chef/cookbook/gem_installer.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index fa6dccfa4f..c0330f6c46 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -47,7 +47,7 @@ class Chef
unless cookbook_gems.empty?
begin
inline_gemfile do
- source "https://rubygems.org"
+ source Chef::Config[:rubygems_url]
cookbook_gems.each do |args|
gem *args
end