vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Util::Downloader#download!

This executes the actual download, downloading the source file
to the destination with the given options used to initialize this
class.

If this method returns without an exception, the download
succeeded. An exception will be raised if the download failed.

Source | Google | Stack overflow

Edit

git clone [email protected]:mitchellh/vagrant.git

cd vagrant

open lib/vagrant/util/downloader.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Util--Downloader-download--for-pr


# Commit to git

git add lib/vagrant/util/downloader.rbgit commit -m "better docs for Vagrant::Util::Downloader#download!"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-Vagrant--Util--Downloader-download--for-pr

hub pull-request


# Celebrate!