From 842193c1cb41f57515bb785120c61882eac99de4 Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 22 Aug 2019 21:22:01 +0100 Subject: [PATCH] Fix rubocop warnings --- cookbooks/hardware/recipes/default.rb | 2 +- cookbooks/planet/recipes/dump.rb | 2 +- roles/imagery.rb | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/cookbooks/hardware/recipes/default.rb b/cookbooks/hardware/recipes/default.rb index c8898f405..857ad124d 100644 --- a/cookbooks/hardware/recipes/default.rb +++ b/cookbooks/hardware/recipes/default.rb @@ -267,7 +267,7 @@ if status_packages.include?("cciss-vol-status") end end -["cciss-vol-status", "mpt-status", "sas2ircu-status", "megaraid-status", "megaclisas-status", "aacraid-status"].each do |status_package| +%w[cciss-vol-status mpt-status sas2ircu-status megaraid-status megaclisas-status aacraid-status].each do |status_package| if status_packages.include?(status_package) package status_package diff --git a/cookbooks/planet/recipes/dump.rb b/cookbooks/planet/recipes/dump.rb index e719e894a..f4777a070 100644 --- a/cookbooks/planet/recipes/dump.rb +++ b/cookbooks/planet/recipes/dump.rb @@ -93,7 +93,7 @@ directory "/store/planetdump" do mode 0o755 end -["planetdump", "planet-mirror-redirect-update"].each do |program| +%w[planetdump planet-mirror-redirect-update].each do |program| template "/usr/local/bin/#{program}" do source "#{program}.erb" owner "root" diff --git a/roles/imagery.rb b/roles/imagery.rb index fcab75738..fedd79afc 100644 --- a/roles/imagery.rb +++ b/roles/imagery.rb @@ -12,7 +12,7 @@ default_attributes( } }, :apt => { - :sources => ["nginx", "ubuntugis-unstable"] + :sources => %w[nginx ubuntugis-unstable] }, :sysctl => { :sockets => { -- 2.39.5