summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-03-22 16:26:10 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-03-22 16:26:10 -0700
commitabea610088761b8006b2bc408f89e15ada64241a (patch)
tree5b8ee63a0ccb410e6931be6c3bd3ff29d6e65350
parent8c04867fe1e776ecf26c601850b3e3c8af23d6fb (diff)
downloadchef-lcg/backport-post-bundle-install.tar.gz
skip the chef gem if we find itlcg/backport-post-bundle-install
Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--post-bundle-install.rb2
1 files changed, 2 insertions, 0 deletions
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