Hello
You can use something like this:
if Vagrant.has_plugin?("vagrant-cachier")
On Sun, Apr 24, 2016 at 12:49 AM, Pedro Adame Vergara <
[email protected]> wrote:
> I'm starting a project which requires the plugins vagrant-vbguest and
> vagrant-librarian-chef-nochef.
> I cannot figure out how to add them as dependencies (e.g. vagrant up check
> if installed. If not, they should be installed at this point)
>
> Looked at
> http://stackoverflow.com/questions/19492738/demand-a-vagrant-plugin-within-the-vagrantfile
> but putting them on group :plugins doesn't work for me.
>
> --
> This mailing list is governed under the HashiCorp Community Guidelines -
> https://www.hashicorp.com/community-guidelines.html. Behavior in
> violation of those guidelines may result in your removal from this mailing
> list.
>
> GitHub Issues: https://github.com/mitchellh/vagrant/issues
> IRC: #vagrant on Freenode
> ---
> You received this message because you are subscribed to the Google Groups
> "Vagrant" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/vagrant-up/8bd7898e-2868-4789-a3e5-824ecc5e158d%40googlegroups.com
> <https://groups.google.com/d/msgid/vagrant-up/8bd7898e-2868-4789-a3e5-824ecc5e158d%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>
--
This mailing list is governed under the HashiCorp Community Guidelines -
https://www.hashicorp.com/community-guidelines.html. Behavior in violation of
those guidelines may result in your removal from this mailing list.
GitHub Issues: https://github.com/mitchellh/vagrant/issues
IRC: #vagrant on Freenode
---
You received this message because you are subscribed to the Google Groups
"Vagrant" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/vagrant-up/CAHqq0exd%3DntOfw8%3DFEzCswB%2BbTPuqWAH_bQL%2B6FoyvBJ3tpbiQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.