summaryrefslogtreecommitdiff
path: root/omnibus/config
diff options
context:
space:
mode:
authorTim Smith <tsmith@chef.io>2021-05-07 15:31:51 -0700
committerTim Smith <tsmith@chef.io>2021-05-07 15:31:51 -0700
commitcb0b972a45ebd3727627ed991dba6b51d85c1ef9 (patch)
tree932c15089c98226d82ccdc7a7bb0d24fca82247a /omnibus/config
parent074c5ea1b8311166bea93a3fd4e2761c13827f11 (diff)
downloadchef-cb0b972a45ebd3727627ed991dba6b51d85c1ef9.tar.gz
Resolve chefstyle warnings
Signed-off-by: Tim Smith <tsmith@chef.io>
Diffstat (limited to 'omnibus/config')
-rw-r--r--omnibus/config/software/more-ruby-cleanup.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/omnibus/config/software/more-ruby-cleanup.rb b/omnibus/config/software/more-ruby-cleanup.rb
index 663fc71e42..b875c8a166 100644
--- a/omnibus/config/software/more-ruby-cleanup.rb
+++ b/omnibus/config/software/more-ruby-cleanup.rb
@@ -43,7 +43,7 @@ build do
block "Removing additional non-code files from installed gems" do
# find the embedded ruby gems dir and clean it up for globbing
- target_dir = "#{install_dir}/embedded/lib/ruby/gems/*/gems".tr('\\', "/")
+ target_dir = "#{install_dir}/embedded/lib/ruby/gems/*/gems".tr("\\", "/")
files = %w{
.rspec-tm
.sitearchdir.time
@@ -82,7 +82,7 @@ build do
block "Removing Gemspec / Rakefile / Gemfile unless there's a bin dir / not a chef gem" do
# find the embedded ruby gems dir and clean it up for globbing
- target_dir = "#{install_dir}/embedded/lib/ruby/gems/*/gems".tr('\\', "/")
+ target_dir = "#{install_dir}/embedded/lib/ruby/gems/*/gems".tr("\\", "/")
files = %w{
Gemfile
Rakefile
@@ -102,7 +102,7 @@ build do
end
block "Removing spec dirs from non-Chef gems" do
- Dir.glob("#{install_dir}/embedded/lib/ruby/gems/*/gems/*/spec".tr('\\', "/")).each do |f|
+ Dir.glob("#{install_dir}/embedded/lib/ruby/gems/*/gems/*/spec".tr("\\", "/")).each do |f|
# if we're in a chef- gem then don't remove the specs
next if File.basename(File.expand_path("..", f)).start_with?("chef-")