summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim Smith <tsmith84@gmail.com>2020-03-30 11:23:25 -0700
committerTim Smith <tsmith84@gmail.com>2020-04-02 11:49:40 -0700
commita89839414053bd2f7a448f4818d090557ad1e85a (patch)
tree1a72cfcf48f7e535334bf36e1426cc1449c0bbec
parentc7fce0192f70da2e85e4a5d06b116cfd1db80677 (diff)
downloadchef-a89839414053bd2f7a448f4818d090557ad1e85a.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 f7f91e5faa..6317f6340b 100644
--- a/lib/chef/resource/build_essential.rb
+++ b/lib/chef/resource/build_essential.rb
@@ -147,8 +147,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