diff options
Diffstat (limited to 'devdocs/vagrant/vagrantfile%2Fvagrant_version.html')
| -rw-r--r-- | devdocs/vagrant/vagrantfile%2Fvagrant_version.html | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/devdocs/vagrant/vagrantfile%2Fvagrant_version.html b/devdocs/vagrant/vagrantfile%2Fvagrant_version.html new file mode 100644 index 00000000..762454fc --- /dev/null +++ b/devdocs/vagrant/vagrantfile%2Fvagrant_version.html @@ -0,0 +1,9 @@ +<h1 id="minimum-vagrant-version"> Minimum Vagrant Version </h1> <p>A set of Vagrant version requirements can be specified in the Vagrantfile to enforce that people use a specific version of Vagrant with a Vagrantfile. This can help with compatibility issues that may otherwise arise from using a too old or too new Vagrant version with a Vagrantfile.</p> <p>Vagrant version requirements should be specified at the top of a Vagrantfile with the <code>Vagrant.require_version</code> helper:</p> <div class="highlight"><pre class="highlight ruby" data-language="ruby">Vagrant.require_version ">= 1.3.5" +</pre></div> +<p>In the case above, the Vagrantfile will only load if the version loading it is Vagrant 1.3.5 or greater.</p> <p>Multiple requirements can be specified as well:</p> <div class="highlight"><pre class="highlight ruby" data-language="ruby">Vagrant.require_version ">= 1.3.5", "< 1.4.0" +</pre></div><div class="_attribution"> + <p class="_attribution-p"> + © 2010–2018 Mitchell Hashimoto<br>Licensed under the MPL 2.0 License.<br> + <a href="https://www.vagrantup.com/docs/vagrantfile/vagrant_version.html" class="_attribution-link">https://www.vagrantup.com/docs/vagrantfile/vagrant_version.html</a> + </p> +</div> |
