diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-22 16:26:10 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-22 16:26:10 -0700 |
commit | abea610088761b8006b2bc408f89e15ada64241a (patch) | |
tree | 5b8ee63a0ccb410e6931be6c3bd3ff29d6e65350 | |
parent | 8c04867fe1e776ecf26c601850b3e3c8af23d6fb (diff) | |
download | chef-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.rb | 2 |
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 |