vagrant
https://github.com/mitchellh/vagrant
Ruby
Vagrant is a tool for building and distributing development environments.
Vagrant::Util::Retryable#retryable
Retries a given block a specified number of times in the event the specified exception is raised. If the retries run out, the final exception is raised. This code is adapted slightly from the following blog post: http://blog.codefront.net/2008/01/14/retrying-code-blocks-in-ruby-on-exceptions-whatever/
Edit
git clone [email protected]:mitchellh/vagrant.git
cd vagrant
open lib/vagrant/util/retryable.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vagrant--Util--Retryable-retryable-for-pr
# Commit to gitgit add lib/vagrant/util/retryable.rbgit commit -m "better docs for Vagrant::Util::Retryable#retryable"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vagrant--Util--Retryable-retryable-for-pr
hub pull-request
# Celebrate!