summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNoah Kantrowitz <noah@coderanger.net>2018-04-02 11:39:59 -0700
committerNoah Kantrowitz <noah@coderanger.net>2018-04-02 11:39:59 -0700
commite24e7fdb197815a5fb77f35c8ac058a870d67b36 (patch)
tree4e5af72e785a79066eda88907255f90ca98c0e92
parent74527f39b5768ea21253b45a0e7583a0af6fd451 (diff)
downloadchef-configure-gems.tar.gz
Address possible gem installs between interval runs that are then used in the config.configure-gems
Signed-off-by: Noah Kantrowitz <noah@coderanger.net>
-rw-r--r--lib/chef/application.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/chef/application.rb b/lib/chef/application.rb
index 069d840813..811c713464 100644
--- a/lib/chef/application.rb
+++ b/lib/chef/application.rb
@@ -50,6 +50,8 @@ class Chef
# Reconfigure the application. You'll want to override and super this method.
def reconfigure
+ # In case any gems were installed for use in the config.
+ Gem.clear_paths
configure_chef
configure_logging
configure_encoding