vagrant

https://github.com/mitchellh/vagrant

Ruby

Vagrant is a tool for building and distributing development environments.

Vagrant::Vagrantfile#machine_config

Returns the configuration for a single machine.

When loading a box Vagrantfile, it will be prepended to the
key order specified when initializing this class. Sub-machine
and provider-specific overrides are appended at the end. The
actual order is:

- box
- keys specified for #initialize
- sub-machine
- provider

The return value is a hash with the following keys (symbols)
and values:

  - box: the {Box} backing the machine
  - config: the actual configuration
  - config_errors: list of errors, if any
  - config_warnings: list of warnings, if any
  - provider_cls: class of the provider backing the machine
  - provider_options: options for the provider

Source | Google | Stack overflow

Edit

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

cd vagrant

open lib/vagrant/vagrantfile.rb

Contribute

# Make a new branch

git checkout -b -your-name--update-docs-Vagrant--Vagrantfile-machine_config-for-pr


# Commit to git

git add lib/vagrant/vagrantfile.rbgit commit -m "better docs for Vagrant::Vagrantfile#machine_config"


# 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--Vagrantfile-machine_config-for-pr

hub pull-request


# Celebrate!