vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

VagrantPlugins::ProviderVirtualBox::Action::SaneDefaults#attempt_and_log

This is just a helper method that executes a single command, logs
the given string to the log, and also includes the exit status in
the log message.

We assume every command is idempotent and pass along the `retryable`
flag. This is because VBoxManage is janky about running simultaneously
on the same box, and if we up multiple boxes at the same time, a bunch
of modifyvm commands get fired

Source | Google | Stack overflow

Edit

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

cd vagrant

open plugins/providers/virtualbox/action/sane_defaults.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Action--SaneDefaults-attempt_and_log-for-pr


# Commit to git

git add plugins/providers/virtualbox/action/sane_defaults.rbgit commit -m "better docs for VagrantPlugins::ProviderVirtualBox::Action::SaneDefaults#attempt_and_log"


# Open pull request

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

hub fork

git push <your name> -your-name--update-docs-VagrantPlugins--ProviderVirtualBox--Action--SaneDefaults-attempt_and_log-for-pr

hub pull-request


# Celebrate!