How is listed with vagrant plugin list |
How to use in Vagrant.has_plugin? | link to plugin.rb in repo |
---|---|---|
bindler | Bindler | fgrehm/bindler |
vagrant-hostmanager | HostManager | smdahlen/vagrant-hostmanager |
vagrant-cachier | vagrant-cachier | fgrehm/vagrant-cachier |
vagrant-aws | AWS | mitchellh/vagrant-aws |
vagrant-rackspace | RackSpace Cloud | mitchellh/vagrant-rackspace |
vagrant-hp | HP | mohitsethi/vagrant-hp |
vagrant-digitalocean | DigitalOcean | smdahlen/vagrant-digitalocean |
# Warns to use Bindler
unless Vagrant.has_plugin?("Bindler")
puts "--- WARNING ---"
puts "I'm using Bindler, https://github.com/fgrehm/bindler"
puts "It's for 'Dead easy Vagrant plugins management'"
puts "If you have not it installed in your system,"
puts "visit https://github.com/fgrehm/bindler#installation for more information"
end
# Vagrant.configure("2") do |config| ...
# Vagrant.configure("2") do |config| ...
# configs for vagrant-cachier
if Vagrant.has_plugin?("vagrant-cachier")
config.cache.auto_detect = true
end
# configs for vagrant-hostmanager
if Vagrant.has_plugin?("HostManager")
config.hostmanager.enabled = true
config.hostmanager.manage_host = true
end
# ...
@rogeriopradoj Is the
has_plugin
method still available in vagrant version 1.7.3?