diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-06 13:36:40 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2015-02-09 14:08:57 -0800 |
commit | b4b5c07515cdde5acdf94803760f6043f4b17386 (patch) | |
tree | 07e220c00294b88c3800778d1a6663bcf3783689 /lib/chef/resource | |
parent | 5c98184870658edf576a0662babdb8e6e3cd55f5 (diff) | |
download | chef-b4b5c07515cdde5acdf94803760f6043f4b17386.tar.gz |
add Chef::Config[:chef_gem_compile_time] plus RELNOTES
* added a config flag to force chef_gem to behave like Chef-10/11
or to behave like Chef-13.
* added a bunch of release notes to explain the warnings and what to
do about them in quite a bit of detail.
Diffstat (limited to 'lib/chef/resource')
-rw-r--r-- | lib/chef/resource/chef_gem.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/chef/resource/chef_gem.rb b/lib/chef/resource/chef_gem.rb index 126e3d56c3..c95bf03200 100644 --- a/lib/chef/resource/chef_gem.rb +++ b/lib/chef/resource/chef_gem.rb @@ -28,7 +28,7 @@ class Chef def initialize(name, run_context=nil) super @resource_name = :chef_gem - @compile_time = nil + @compile_time = Chef::Config[:chef_gem_compile_time] @gem_binary = RbConfig::CONFIG['bindir'] + "/gem" end @@ -53,9 +53,9 @@ class Chef # Chef::Resource.run_action: Caveat: this skips Chef::Runner.run_action, where notifications are handled # Action could be an array of symbols, but probably won't (think install + enable for a package) if compile_time.nil? - Chef::Log.warn "The chef_gem installation at compile time is deprecated and this behavior will change in the future." - Chef::Log.warn "Please set `compile_time false` on the resource to use the new behavior and suppress this warning," - Chef::Log.warn "or you may set `compile_time true` on the resource if compile_time behavior is necessary." + Chef::Log.warn "#{self} chef_gem compile_time installation is deprecated" + Chef::Log.warn "#{self} Please set `compile_time false` on the resource to use the new behavior." + Chef::Log.warn "#{self} or set `compile_time true` on the resource if compile_time behavior is required." end if compile_time || compile_time.nil? |