diff options
author | Tim Smith <tsmith@chef.io> | 2020-08-17 10:20:07 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-08-17 10:20:07 -0700 |
commit | d7f1dbbe907c1b1e6639442b0aff977533c24c06 (patch) | |
tree | 4c50d7850dbc78ac0d48d1a6a6071557adf369a5 | |
parent | 7aeaf1c68e3ce3528f6d69a8f054f4772f609f5e (diff) | |
parent | 04b1a54b657d5f5320f0ed41e9be707aa653b153 (diff) | |
download | chef-d7f1dbbe907c1b1e6639442b0aff977533c24c06.tar.gz |
Merge pull request #10305 from chef/slim_fauxhai
Delete deprecated Fauxhai definitions
-rw-r--r-- | omnibus/config/software/more-ruby-cleanup.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/omnibus/config/software/more-ruby-cleanup.rb b/omnibus/config/software/more-ruby-cleanup.rb index 2f1db9caea..e2d24df540 100644 --- a/omnibus/config/software/more-ruby-cleanup.rb +++ b/omnibus/config/software/more-ruby-cleanup.rb @@ -124,4 +124,14 @@ build do end end end + + block "Remove deprecated fauxhai dumps we don't need for running chef-utils specs" do + require "json" + Dir.glob("#{install_dir}/embedded/lib/ruby/gems/*/gems/fauxhai*/lib/fauxhai/platforms/**/*.json") do |file_path| + if JSON.parse(File.read(file_path))["deprecated"] + puts "Deleted deprecated Fauxhai definition at #{file_path}" + FileUtils.rm_f(file_path) + end + end + end end |