blob: 762454fc8f4b9c1f22a401d3d99d3755b8a27718 (
plain)
1
2
3
4
5
6
7
8
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>
|