Update the build-essential cookbook

This removes deprecation warnings on Chef 14, which ships with the
build_essential resource
This commit is contained in:
Greg Karékinian
2019-04-03 15:29:22 +02:00
parent 374d6bc975
commit adc417282d
7 changed files with 22 additions and 12 deletions

View File

@@ -38,7 +38,6 @@ action :install do
# Remove the placeholder to prevent perpetual appearance in the update utility
rm -f /tmp/.com.apple.dt.CommandLineTools.installondemand.in-progress
EOH
# rubocop:enable Metrics/LineLength
end
end
end
@@ -53,9 +52,6 @@ action_class do
def installed?
cmd = Mixlib::ShellOut.new('pkgutil --pkgs=com.apple.pkg.CLTools_Executables')
cmd.run_command
cmd.error!
true
rescue Mixlib::ShellOut::ShellCommandFailed
false
cmd.error? ? false : true
end
end