summaryrefslogtreecommitdiff
path: root/devdocs/vagrant/vagrantfile%2Fvagrant_version.html
diff options
context:
space:
mode:
authorCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
committerCraig Jennings <c@cjennings.net>2024-04-07 13:41:34 -0500
commit754bbf7a25a8dda49b5d08ef0d0443bbf5af0e36 (patch)
treef1190704f78f04a2b0b4c977d20fe96a828377f1 /devdocs/vagrant/vagrantfile%2Fvagrant_version.html
new repository
Diffstat (limited to 'devdocs/vagrant/vagrantfile%2Fvagrant_version.html')
-rw-r--r--devdocs/vagrant/vagrantfile%2Fvagrant_version.html9
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 "&gt;= 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 "&gt;= 1.3.5", "&lt; 1.4.0"
+</pre></div><div class="_attribution">
+ <p class="_attribution-p">
+ &copy; 2010&ndash;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>