I’d prefer if you used Ruby’s `Tempfile` class instead. This will work on Windows, where there may not be a `/tmp` directory.

Also, please put parentheses around arguments, in keeping with the rest of this codebase.