summaryrefslogtreecommitdiff
path: root/omnibus
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-12 20:14:42 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-12 20:14:42 -0700
commit278101951d5c19d6d8966c8c3ae5602940852f9b (patch)
tree44b1d6468490e2c41e2f25c67f0f5142e2b7a9a2 /omnibus
parent37df22c7d252b2430163dd81dc6c4abc98f88c55 (diff)
downloadchef-278101951d5c19d6d8966c8c3ae5602940852f9b.tar.gz
Remove some of the ruby cleanup to fix buildscleanup_less
Let's see if this gets the tests passing again. Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'omnibus')
-rw-r--r--omnibus/config/software/more-ruby-cleanup.rb22
1 files changed, 0 insertions, 22 deletions
diff --git a/omnibus/config/software/more-ruby-cleanup.rb b/omnibus/config/software/more-ruby-cleanup.rb
index 6cfb526def..ac2dc5d7d1 100644
--- a/omnibus/config/software/more-ruby-cleanup.rb
+++ b/omnibus/config/software/more-ruby-cleanup.rb
@@ -24,9 +24,6 @@ license :project_license
source path: "#{project.files_path}/#{name}"
-dependency "ruby"
-dependency "rubygems"
-
build do
block "Removing additional non-code files from installed gems" do
# find the embedded ruby gems dir and clean it up for globbing
@@ -76,23 +73,4 @@ build do
FileUtils.rm_rf(f)
end
end
-
- block "Removing Gemspec / Rakefile / Gemfile unless there's a bin dir" 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/*.rake
- }
-
- Dir.glob(Dir.glob("#{target_dir}/*/{#{files.join(",")}}")).each do |f|
- # don't delete these files if there's a bin dir in the same dir
- unless Dir.exist?(File.join(File.dirname(f), "bin"))
- puts "Deleting #{f}"
- File.delete(f)
- end
- end
- end
end \ No newline at end of file