diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2016-05-12 14:01:57 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2016-05-12 14:01:57 -0700 |
commit | b852e9180be6d98263a2c07028814e5e286154a1 (patch) | |
tree | b35b45bb805d544766e9b31338d45e934e065d2b /lib | |
parent | 3be2aedd3e88b353737876d60aa956e915a49888 (diff) | |
download | chef-b852e9180be6d98263a2c07028814e5e286154a1.tar.gz |
gem metadata command needs Gem.clear_pathslcg/gem-metadata-clear-paths
otherwise it'll crash on the first run and have to be re-run
Diffstat (limited to 'lib')
-rw-r--r-- | lib/chef/cookbook/gem_installer.rb | 1 |
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 |