summaryrefslogtreecommitdiff
path: root/lib/chef/cookbook/gem_installer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/chef/cookbook/gem_installer.rb')
-rw-r--r--lib/chef/cookbook/gem_installer.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/chef/cookbook/gem_installer.rb b/lib/chef/cookbook/gem_installer.rb
index 06e98fe3e9..df73ce3ee4 100644
--- a/lib/chef/cookbook/gem_installer.rb
+++ b/lib/chef/cookbook/gem_installer.rb
@@ -59,6 +59,7 @@ class Chef
Chef::Log.info(so.stdout)
end
end
+ Gem.clear_paths
rescue Exception => e
events.cookbook_gem_failed(e)
raise