# File lib/vagrant-libvirt/action.rb, line 174 def self.action_destroy Vagrant::Action::Builder.new.tap do |b| b.use ConfigValidate b.use Call, IsCreated do |env, b2| unless env[:result] # Try to remove stale volumes anyway b2.use SetNameOfDomain b2.use RemoveStaleVolume if env[:machine].config.vm.box b2.use MessageNotCreated unless env[:result] next end b2.use Call, DestroyConfirm do |env2, b3| if env2[:result] b3.use ClearForwardedPorts # b3.use PruneNFSExports b3.use DestroyDomain b3.use DestroyNetworks b3.use ProvisionerCleanup else b3.use MessageWillNotDestroy end end end end end