I would like to detect if a plugin has been installed, so I can add some useful debugging tips for users.
I have tried the following code:
if confi
The Vagrant.has_plugin?(name) method returns true if a plugin has been installed.
Example:
unless Vagrant.has_plugin?("vagrant-some-plugin") raise 'some-plugin is not installed!' end
Original source: stackoverflow answer.