It worked, thank you.
Just call the "raise" method inside the if block to make the plugin
mandatory.
El domingo, 24 de abril de 2016, 12:46:22 (UTC+2), Alvaro Miranda Aguilera
escribió:
>
> 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]
> <javascript:>> 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] <javascript:>.
>> 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/6afe3c2c-f61c-465a-98d6-cc86d2fd9938%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.