diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2018-11-19 13:13:46 -0800 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2018-11-19 13:13:46 -0800 |
commit | e979ba2ccf10cfa09481e65fd7009bb309247123 (patch) | |
tree | 69fdb882face04af8022928367df4a237d0de32b /lib | |
parent | 7f79a630893ad4aa64cd9507f16ac7008364ea0f (diff) | |
download | chef-e979ba2ccf10cfa09481e65fd7009bb309247123.tar.gz |
Chef-15: require instead of load libraries
This reverts a change which was working around problems caused by
unforked interval runs. Fixes issues with chefspec, should make
it faster and reduce warning spam.
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/run_context/cookbook_compiler.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/chef/run_context/cookbook_compiler.rb b/lib/chef/run_context/cookbook_compiler.rb index 4edf175824..c3cee5841f 100644 --- a/lib/chef/run_context/cookbook_compiler.rb +++ b/lib/chef/run_context/cookbook_compiler.rb @@ -1,6 +1,6 @@ # # Author:: Daniel DeLeo (<dan@chef.io>) -# Copyright:: Copyright 2012-2016, Chef Software Inc. +# Copyright:: Copyright 2012-2018, Chef Software Inc. # License:: Apache License, Version 2.0 # # Licensed under the Apache License, Version 2.0 (the "License"); @@ -226,7 +226,7 @@ class Chef begin # FIXME(log): should be trace logger.debug("Loading cookbook #{cookbook_name}'s library file: #{filename}") - Kernel.load(filename) + Kernel.require(filename) @events.library_file_loaded(filename) rescue Exception => e @events.library_file_load_failed(filename, e) |