lib/kitchen/driver/vagrant.rb in kitchen-vagrant-0.7.2 vs lib/kitchen/driver/vagrant.rb in kitchen-vagrant-0.7.3
- old
+ new
@@ -64,9 +64,10 @@
def destroy(state)
return if state[:hostname].nil?
create_vagrantfile(state)
+ @vagrantfile_created = false
run "vagrant destroy -f"
FileUtils.rm_rf(vagrant_root)
info("Vagrant instance <#{state[:hostname]}> destroyed.")
state.delete(:hostname)
end