brew

https://github.com/homebrew/brew

Ruby

🍺 The missing package manager for macOS

Resource#stage

Verifies download and unpacks it
The block may call `|resource,staging| staging.retain!` to retain the staging
directory. Subclasses that override stage should implement the tmp
dir using FileUtils.mktemp so that works with all subtypes.

Source | Google | Stack overflow

Edit

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

cd brew

open Library/Homebrew/resource.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Resource-stage-for-pr


# Commit to git

git add Library/Homebrew/resource.rbgit commit -m "better docs for Resource#stage"


# Open pull request

gem install hub # on a mac you can `brew install hub`

hub fork

git push <your name> -your-name--update-docs-Resource-stage-for-pr

hub pull-request


# Celebrate!