lib/vagrant_init.rb in vagrant-dns-server-0.1 vs lib/vagrant_init.rb in vagrant-dns-server-0.2
- old
+ new
@@ -1,9 +1,8 @@
-require 'vagrant'
-require 'constants'
-require 'middleware/update'
-require 'middleware/network_binder'
-require 'zmq'
+require 'vagrant_dns_plugin'
+#see http://tinyurl.com/bfuawuj
Vagrant.actions[:provision].insert_after(Vagrant::Action::VM::Provision, VagrantDns::Middleware::Update)
-Vagrant.actions[:start].insert_after(Vagrant::Action::VM::Provision, VagrantDns::Middleware::Update)
+Vagrant.actions[:start].insert_after(Vagrant::Action::VM::Boot, VagrantDns::Middleware::Update)
+
+Vagrant.actions[:destroy].insert_after(Vagrant::Action::VM::ProvisionerCleanup, VagrantDns::Middleware::Remove)