diff options
author | Pete Higgins <pete@peterhiggins.org> | 2020-03-13 13:18:33 -0700 |
---|---|---|
committer | Pete Higgins <pete@peterhiggins.org> | 2020-03-23 13:55:01 -0700 |
commit | 1f629d3a004e45dfd25d06a46f565d52ac192c18 (patch) | |
tree | b03b4fc8f2783a680e14f2a9149f21cc20f8321f /lib/chef | |
parent | 55260569f085a39467c97a3a66e7d3b68ff6295b (diff) | |
download | chef-1f629d3a004e45dfd25d06a46f565d52ac192c18.tar.gz |
Default clear_sources to nil for chef_gem and gem_package.
Signed-off-by: Pete Higgins <pete@peterhiggins.org>
Diffstat (limited to 'lib/chef')
-rw-r--r-- | lib/chef/resource/gem_package.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/chef/resource/gem_package.rb b/lib/chef/resource/gem_package.rb index a8e16841dc..80eb257fa1 100644 --- a/lib/chef/resource/gem_package.rb +++ b/lib/chef/resource/gem_package.rb @@ -41,7 +41,7 @@ class Chef property :source, [ String, Array ], description: "Optional. The URL, or list of URLs, at which the gem package is located. This list is added to the source configured in Chef::Config[:rubygems_url] (see also include_default_source) to construct the complete list of rubygems sources. Users in an 'airgapped' environment should set Chef::Config[:rubygems_url] to their local RubyGems mirror." - property :clear_sources, [ TrueClass, FalseClass ], + property :clear_sources, [ TrueClass, FalseClass, nil ], description: "Set to 'true' to download a gem from the path specified by the source property (and not from RubyGems).", default: lazy { Chef::Config[:clear_gem_sources] }, desired_state: false |