mirror of
https://github.com/vagrant-libvirt/vagrant-libvirt.git
synced 2025-02-25 18:55:27 -06:00
Unify behavior across providers by asking for confirmation before deleting virtual machines with potentially valuable data. Before destroying a vm the following message is presented: `demo: Are you sure you want to destroy the 'demo' VM? [y/N]` An additional --force flag provided by upstream vagrant allows skipping the `vagrant destroy demo -f` Practically all other providers available ask the user for confirmation before deleting the vm. Vagrant official providers: https://github.com/hashicorp/vagrant/blob/master/plugins/providers/docker/action.rb#L156 https://github.com/hashicorp/vagrant/blob/master/plugins/providers/hyperv/action.rb#L34 https://github.com/hashicorp/vagrant/blob/master/plugins/providers/virtualbox/action.rb#L100 Third party providers: https://github.com/mitchellh/vagrant-aws/blob/master/lib/vagrant-aws/action.rb#L45 https://github.com/Azure/vagrant-azure/blob/v2.0/lib/vagrant-azure/action.rb#L34 https://github.com/jesa7955/vagrant-bhyve/blob/master/lib/vagrant-bhyve/action.rb#L156 https://github.com/NeilW/vagrant-brightbox/blob/master/lib/vagrant-brightbox/action.rb#L44 https://github.com/devopsgroup-io/vagrant-digitalocean/blob/master/lib/vagrant-digitalocean/actions.rb#L27 https://github.com/fgrehm/vagrant-lxc/blob/master/lib/vagrant-lxc/action.rb#L148 https://github.com/Parallels/vagrant-parallels/blob/master/lib/vagrant-parallels/action.rb#L48