chef
https://github.com/opscode/chef
Ruby
A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.
Chef::REST#fetch
Streams a download to a tempfile, then yields the tempfile to a block. After the download, the tempfile will be closed and unlinked. If you rename the tempfile, it will not be deleted. Beware that if the server streams infinite content, this method will stream it until you run out of disk space.
Edit
git clone [email protected]:opscode/chef.git
cd chef
open lib/chef/rest.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Chef--REST-fetch-for-pr
# Commit to gitgit add lib/chef/rest.rbgit commit -m "better docs for Chef::REST#fetch"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Chef--REST-fetch-for-pr
hub pull-request
# Celebrate!