in lib/puppet/provider/package/brewcask.rb [127:135]
def uninstall
begin
Puppet.debug "Uninstalling #{resource_name}"
execute([command(:brew), :uninstall, '--cask', resource_name], :failonfail => true)
rescue Puppet::ExecutionFailure => detail
raise Puppet::Error, "Could not uninstall package: #{detail}"
end
end