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.

Source | Google | Stack overflow

Edit

git clone [email protected]:homebrew/brew.git

cd brew

open Library/Homebrew/extend/fileutils.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-FileUtils-mktemp-for-pr


# Commit to git

git add Library/Homebrew/extend/fileutils.rbgit commit -m "better docs for FileUtils#mktemp"


# Open pull request

gem 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!