summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-05-27 13:02:09 -0700
committerTim Smith <tsmith84@gmail.com>2020-05-27 13:02:09 -0700
commit92991661079bc69beed868b5c579d5bf4299f62a (patch)
tree43fb1c4451a5f667ceaaadf5051bf5b07f0f03af
parent80a8a5ef7a40b143bd8bb08bf5b94dc975aa0286 (diff)
downloadchef-92991661079bc69beed868b5c579d5bf4299f62a.tar.gz
Chefstyle updates
Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/provider/remote_file/http.rb2
-rw-r--r--lib/chef/resource/homebrew_update.rb2
-rw-r--r--spec/unit/resource/homebrew_update_spec.rb1
3 files changed, 2 insertions, 3 deletions
diff --git a/lib/chef/provider/remote_file/http.rb b/lib/chef/provider/remote_file/http.rb
index ef7398f756..93a3bd9ebf 100644
--- a/lib/chef/provider/remote_file/http.rb
+++ b/lib/chef/provider/remote_file/http.rb
@@ -139,7 +139,7 @@ class Chef
when :verify_none
Chef::HTTP::VerifyNoneSSLPolicy
else :verify_peer
- Chef::HTTP::VerifyPeerSSLPolicy
+ Chef::HTTP::VerifyPeerSSLPolicy
end
end
opts
diff --git a/lib/chef/resource/homebrew_update.rb b/lib/chef/resource/homebrew_update.rb
index 53639c3ee2..36dcda810d 100644
--- a/lib/chef/resource/homebrew_update.rb
+++ b/lib/chef/resource/homebrew_update.rb
@@ -76,7 +76,7 @@ class Chef
end
execute "brew update" do
- command [ "brew", "update" ]
+ command %w{brew update}
default_env true
user Homebrew.owner
notifies :touch, "file[#{BREW_STAMP}]", :immediately
diff --git a/spec/unit/resource/homebrew_update_spec.rb b/spec/unit/resource/homebrew_update_spec.rb
index f9c2e47f5f..3bf39afe9c 100644
--- a/spec/unit/resource/homebrew_update_spec.rb
+++ b/spec/unit/resource/homebrew_update_spec.rb
@@ -10,7 +10,6 @@ describe Chef::Resource::HomebrewUpdate do
let(:stamp_file) { Dir.mktmpdir("apt_update_periodic") }
let(:brew_update_cmd) { %w{homebrew update} }
-
it "sets the default action as :periodic" do
expect(resource.action).to eql([:periodic])
end