community-cookbooks/build-essential/resources/xcode_command_line_tools.rb
#
# Determine if the XCode Command Line Tools are installed
#
# @return [true, false]
#
Determine if the XCode Command Line Tools are installed
Determine if the XCode Command Line Tools are installed
def installed?
    cmd = Mixlib::ShellOut.new('pkgutil --pkgs=com.apple.pkg.CLTools_Executables')
    cmd.run_command
    cmd.error!
    true
  rescue Mixlib::ShellOut::ShellCommandFailed
    false
  end
def installed? cmd = Mixlib :: ShellOut . new ( 'pkgutil --pkgs=com.apple.pkg.CLTools_Executables' ) cmd . run_command cmd . error! true rescue Mixlib :: ShellOut :: ShellCommandFailed false end
Determine if the XCode Command Line Tools are installed
Determine if the XCode Command Line Tools are installed
None
true, false