summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLamont Granquist <lamont@scriptkiddie.org>2021-03-19 19:18:16 -0700
committerLamont Granquist <lamont@scriptkiddie.org>2021-03-19 19:18:16 -0700
commit6cc5bb74962bc797b3bba08f5450f7e7a981c6b7 (patch)
tree837f34206d8210452cc0c2b1d13fe44118835b96
parentdb0c7b4838efd5f0c2a30963b2f2a6d34bf4e605 (diff)
downloadchef-lcg/post-bundle-install-hook.tar.gz
include gemfiles for gemslcg/post-bundle-install-hook
necessary for appbundler to use them as gems Signed-off-by: Lamont Granquist <lamont@scriptkiddie.org>
-rw-r--r--omnibus/config/software/more-ruby-cleanup.rb1
-rw-r--r--post-bundle-install.rb2
2 files changed, 2 insertions, 1 deletions
diff --git a/omnibus/config/software/more-ruby-cleanup.rb b/omnibus/config/software/more-ruby-cleanup.rb
index d7c3b6000f..df8bb7cb3e 100644
--- a/omnibus/config/software/more-ruby-cleanup.rb
+++ b/omnibus/config/software/more-ruby-cleanup.rb
@@ -82,7 +82,6 @@ build do
# find the embedded ruby gems dir and clean it up for globbing
target_dir = "#{install_dir}/embedded/lib/ruby/gems/*/gems".tr('\\', "/")
files = %w{
- *.gemspec
Gemfile
Rakefile
tasks
diff --git a/post-bundle-install.rb b/post-bundle-install.rb
index f0db5d50b0..d9d4b55024 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
+ system "ls -laR #{gempath}"
+
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