chef

https://github.com/opscode/chef

Ruby

A systems integration framework, built to bring the benefits of configuration management to your entire infrastructure.

Chef::HTTP#streaming_request

Makes a streaming download request, streaming the response body to a
tempfile. If a block is given, the tempfile is passed to the block and
the tempfile will automatically be unlinked after the block is executed.

If no block is given, the tempfile is returned, which means it's up to
you to unlink the tempfile when you're done with it.

Source | Google | Stack overflow

Edit

git clone [email protected]:opscode/chef.git

cd chef

open lib/chef/http.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Chef--HTTP-streaming_request-for-pr


# Commit to git

git add lib/chef/http.rbgit commit -m "better docs for Chef::HTTP#streaming_request"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Chef--HTTP-streaming_request-for-pr

hub pull-request


# Celebrate!