summaryrefslogtreecommitdiff
path: root/post-bundle-install.rb
diff options
context:
space:
mode:
Diffstat (limited to 'post-bundle-install.rb')
-rw-r--r--post-bundle-install.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/post-bundle-install.rb b/post-bundle-install.rb
index f3b953e7e3..dc3797c7ff 100644
--- a/post-bundle-install.rb
+++ b/post-bundle-install.rb
@@ -22,6 +22,11 @@ Dir["#{gem_home}/bundler/gems/*"].each do |gempath|
puts "re-installing #{gem_name}..."
+ if gem_name == "ohai"
+ system("gem install chef-utils -v 17.10.25") or raise "gem build failed"
+ system("gem install chef-config -v 17.10.25") or raise "gem build failed"
+ end
+
Dir.chdir(gempath) do
system("gem build #{gem_name}.gemspec") or raise "gem build failed"
system("gem install #{gem_name}*.gem --conservative --minimal-deps --no-document") or raise "gem install failed"