Sam Ford 5701f92321
Clean up cask audit tmpdir after use
`Cask::Audit#extract_artifacts` is used in the `#audit_signing` and
`#cask_plist_min_os` methods to create a directory in `/tmp` and
extract cask artifacts without duplicating the work if it's already
done. However, due to how this is set up, `tmpdir` isn't removed
afterward and the extracted artifacts will take up disk space until
the `tmp` directory is cleaned up. As a result, running
`brew audit --strict --online` locally can chew through disk space
and it may not be clear to the user where their free space has gone.

This adds a finalizer method to `Cask::Audit` to remove the created
`@tmpdir` (if any) once it's no longer needed. There may be a better
way of addressing the issue but this works for now without having to
restructure how these audits work.
2024-05-24 09:22:12 -04:00
..
2024-05-23 17:15:43 +01:00
2024-05-23 17:15:43 +01:00
2023-05-03 11:29:01 -05:00
2024-05-17 14:25:54 +09:00
2024-05-24 09:22:12 -04:00
2024-04-22 21:16:49 +02:00
2024-01-12 10:56:49 -08:00
2024-03-07 16:20:20 +00:00