summaryrefslogtreecommitdiff
path: root/lib/chef/application.rb
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2015-02-06 13:36:40 -0800
committerLamont Granquist <lamont@scriptkiddie.org>2015-02-09 14:08:57 -0800
commitb4b5c07515cdde5acdf94803760f6043f4b17386 (patch)
tree07e220c00294b88c3800778d1a6663bcf3783689 /lib/chef/application.rb
parent5c98184870658edf576a0662babdb8e6e3cd55f5 (diff)
downloadchef-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/application.rb')
-rw-r--r--lib/chef/application.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index 5a67fc9091..00992fdec1 100644
--- a/lib/chef/application.rb
+++ b/lib/chef/application.rb
@@ -49,6 +49,7 @@ class Chef
configure_logging
configure_proxy_environment_variables
configure_encoding
+ emit_warnings
end
# Get this party started
@@ -372,6 +373,12 @@ class Chef
ENV
end
+ def emit_warnings
+ if Chef::Config[:chef_gem_compile_time]
+ Chef::Log.warn "setting chef_gem_compile_time to true is deprecated"
+ end
+ end
+
class << self
def debug_stacktrace(e)
message = "#{e.class}: #{e}\n#{e.backtrace.join("\n")}"