summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Gordon <nrgetik@users.noreply.github.com>2018-04-27 16:30:40 -0400
committerThomas Gordon <nrgetik@users.noreply.github.com>2018-04-27 16:30:40 -0400
commitebdd1475af631339927c92d15c6e2000d0db07d5 (patch)
treef25c2a0ca45577ebd3172974a615149998b0304f
parent7707f0761e41a6ca2090c7a6c40275400d5ca262 (diff)
downloadchef-ebdd1475af631339927c92d15c6e2000d0db07d5.tar.gz
Added Chef::Config[:clear_gem_sources] default to false
Signed-off-by: Thomas Gordon <nrgetik@users.noreply.github.com>
-rw-r--r--chef-config/lib/chef-config/config.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/chef-config/lib/chef-config/config.rb b/chef-config/lib/chef-config/config.rb
index d1f33d3400..d1f64d8c92 100644
--- a/chef-config/lib/chef-config/config.rb
+++ b/chef-config/lib/chef-config/config.rb
@@ -1086,6 +1086,9 @@ module ChefConfig
# can be set to a string or array of strings for URIs to set as rubygems sources
default :rubygems_url, "https://www.rubygems.org"
+ # globally sets the default of the clear_sources property on the gem_package and chef_gem resources
+ default :clear_gem_sources, false
+
# If installed via an omnibus installer, this gives the path to the
# "embedded" directory which contains all of the software packaged with
# omnibus. This is used to locate the cacert.pem file on windows.