summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-30 11:23:25 -0700
committerTim Smith <tsmith84@gmail.com>2020-03-31 10:51:50 -0700
commit17323447548807703ef2b39607ee62db4f6221e8 (patch)
tree06012e2992d2db044d6e57dfa95246f5635dd977
parent789436ac73c11ad57fc9774d302d245bede5ab95 (diff)
downloadchef-17323447548807703ef2b39607ee62db4f6221e8.tar.gz
Use the shell_out helper instead of Mixlib::Shellout directly
This simplifies things a bit. Signed-off-by: Tim Smith <tsmith@chef.io>
-rw-r--r--lib/chef/resource/build_essential.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/chef/resource/build_essential.rb b/lib/chef/resource/build_essential.rb
index 81b6ac2799..a8bcefe27f 100644
--- a/lib/chef/resource/build_essential.rb
+++ b/lib/chef/resource/build_essential.rb
@@ -134,8 +134,7 @@ class Chef
#
# @return [true, false]
def xcode_cli_installed?
- cmd = Mixlib::ShellOut.new("pkgutil --pkgs=com.apple.pkg.CLTools_Executables")
- cmd.run_command
+ cmd = shell_out("pkgutil --pkgs=com.apple.pkg.CLTools_Executables")
# pkgutil returns an error if the package isn't found aka not installed
cmd.error? ? false : true
end