From abea610088761b8006b2bc408f89e15ada64241a Mon Sep 17 00:00:00 2001 From: Lamont Granquist Date: Mon, 22 Mar 2021 16:26:10 -0700 Subject: skip the chef gem if we find it Signed-off-by: Lamont Granquist --- post-bundle-install.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/post-bundle-install.rb b/post-bundle-install.rb index f0db5d50b0..9d7491de77 100644 --- a/post-bundle-install.rb +++ b/post-bundle-install.rb @@ -15,6 +15,8 @@ Dir["#{gem_home}/bundler/gems/*"].each do |gempath| gem_name = matches[1] next unless gem_name + next if gem_name == "chef" + puts "re-installing #{gem_name}..." # we can't use "commmand" or "bundle" or "gem" DSL methods here since those are lazy and we need to run commands immediately -- cgit v1.2.1