in lib/puppet/provider/package/brew.rb [138:149]
def install
begin
Puppet.debug "Looking for #{install_name} package..."
execute([command(:brew), :info, install_name], :failonfail => true)
rescue Puppet::ExecutionFailure
raise Puppet::Error, "Could not find package: #{install_name}"
end
Puppet.debug "Package found, installing..."
do_install
end