diff options
author | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-22 16:26:10 -0700 |
---|---|---|
committer | Lamont Granquist <lamont@scriptkiddie.org> | 2021-03-22 18:21:38 -0700 |
commit | d7e3f64f7c7e960ad899a18e8c97d00721bb6ba1 (patch) | |
tree | 01c4ccd324abf1eba80bcbf912092e2e6b130a59 | |
parent | b423c02801a6904449fee2701745e45a0a427946 (diff) | |
download | chef-d7e3f64f7c7e960ad899a18e8c97d00721bb6ba1.tar.gz |
skip the chef gem if we find it
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 |