vagrant
https://github.com/mitchellh/vagrant
Ruby
Vagrant is a tool for building and distributing development environments.
Vagrant.require_version
This allows a Vagrantfile to specify the version of Vagrant that is
required. You can specify a list of requirements which will all be checked
against the running Vagrant version.
This should be specified at the _top_ of any Vagrantfile.
Examples are shown below:
Vagrant.require_version(">= 1.3.5")
Vagrant.require_version(">= 1.3.5", "< 1.4.0")
Vagrant.require_version("~> 1.3.5")Edit
git clone [email protected]:mitchellh/vagrant.git
cd vagrant
open lib/vagrant.rb
Contribute
# Make a new branchgit checkout -b -your-name--update-docs-Vagrant-require_version-for-pr
# Commit to gitgit add lib/vagrant.rbgit commit -m "better docs for Vagrant.require_version"
# Open pull requestgem install hub # on a mac you can `brew install hub`
hub fork
git push <your name> -your-name--update-docs-Vagrant-require_version-for-pr
hub pull-request
# Celebrate!