brew
https://github.com/homebrew/brew
Ruby
🍺 The missing package manager for macOS
FileUtils.mktemp
Create a temporary directory then yield. When the block returns, recursively delete the temporary directory. Passing opts[:retain] or calling `do |staging| ... staging.retain!` in the block will skip the deletion and retain the temporary directory's contents.
Edit
git clone [email protected]:homebrew/brew.git
cd brew
open Library/Homebrew/extend/fileutils.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-FileUtils-mktemp-for-pr
# Commit to gitgit add Library/Homebrew/extend/fileutils.rbgit commit -m "better docs for FileUtils.mktemp"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-FileUtils-mktemp-for-pr
hub pull-request
# Celebrate!