vagrant/plugins/providers/virtualbox/action
Seth Vargo efdb148f61
Move pre-flight package validation to middleware
This commit separates the scratch and output directory creation from the
main package middleware into its own PackageSetupFolders middleware.
Additionally, the validation that ensures an output file does not exist
is moved into a validation function that can be shared across multiple
methods.

This refactor permits a pre-flight check to ensure box packaging would
be successful before actually stopping the VM.

Fixes GH-7351
2016-05-27 17:07:04 -04:00
..
boot.rb core: WaitForCommunicator - more robust wait for boot 2013-08-29 16:27:00 -07:00
check_accessible.rb Convert all VirtualBox provider internals to use new state API 2013-01-21 11:38:37 -06:00
check_created.rb Convert all VirtualBox provider internals to use new state API 2013-01-21 11:38:37 -06:00
check_guest_additions.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
check_running.rb Convert all VirtualBox provider internals to use new state API 2013-01-21 11:38:37 -06:00
check_virtualbox.rb Building up the `destroy` action again using new provider API. 2012-07-26 22:39:27 -07:00
clean_machine_folder.rb `vagrant destroy` fully works 2012-08-13 23:31:12 -07:00
clear_forwarded_ports.rb providers/virtualbox: only clear forwarded ports if there are any 2014-02-13 21:04:56 -08:00
clear_network_interfaces.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
created.rb Convert all VirtualBox provider internals to use new state API 2013-01-21 11:38:37 -06:00
customize.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
destroy.rb `vagrant destroy` fully works 2012-08-13 23:31:12 -07:00
destroy_unused_network_interfaces.rb Update CHANGELOG 2013-09-15 16:39:54 -07:00
discard_state.rb core: Use Machine#state wherever possible so we update the index 2014-04-21 13:51:23 -07:00
export.rb core: Use Machine#state wherever possible so we update the index 2014-04-21 13:51:23 -07:00
forced_halt.rb Use the new GracefulHalt built-in for VirtualBox 2013-01-22 12:07:37 -08:00
forward_ports.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
import.rb providers/virtualbox: unify import/clone 2015-10-08 13:07:05 -04:00
import_master.rb providers/virtualbox: if no box, don't import the master 2015-10-16 10:30:04 -07:00
is_paused.rb Properly handle paused VirtualBox VMs [GH-1184] 2013-01-30 22:47:45 -08:00
is_running.rb Convert all VirtualBox provider internals to use new state API 2013-01-21 11:38:37 -06:00
is_saved.rb Convert all VirtualBox provider internals to use new state API 2013-01-21 11:38:37 -06:00
match_mac_address.rb kernel/v2: box is optional if clone is set 2015-10-08 12:41:16 -04:00
message_already_running.rb Message on `up` that VM is already running [GH-1558] 2013-04-08 09:09:23 -07:00
message_not_created.rb Start moving the halt commands over to the new provider interface 2012-07-28 10:43:16 -07:00
message_not_running.rb `vagrant provision` 2012-08-14 21:21:31 -07:00
message_will_not_destroy.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
network.rb Use <prefix>::1 as the IPv6 adapter IP. 2015-12-09 17:22:02 -08:00
network_fix_ipv6.rb Rename network to interface 2015-12-08 11:05:39 -05:00
package.rb Move pre-flight package validation to middleware 2016-05-27 17:07:04 -04:00
package_setup_files.rb Move pre-flight package validation to middleware 2016-05-27 17:07:04 -04:00
package_setup_folders.rb Move pre-flight package validation to middleware 2016-05-27 17:07:04 -04:00
package_vagrantfile.rb Change symbols inside hashes to 1.9 JSON-like syntax 2014-05-22 12:35:12 -04:00
prepare_clone_snapshot.rb providers/virtualbox: clone 2015-10-08 12:33:55 -04:00
prepare_forwarded_port_collision_params.rb Revert "Merge pull request #4616 from crypt1d/master" 2014-10-23 09:30:46 -07:00
prepare_nfs_settings.rb Use .key? instead of .has_key? 2015-01-05 18:29:01 -05:00
prepare_nfs_valid_ids.rb providers/virtualbox: don't clear /etc/exports on BSDs for NFS [GH-2645] 2013-12-13 22:03:14 -08:00
resume.rb core: Use Machine#state wherever possible so we update the index 2014-04-21 13:51:23 -07:00
sane_defaults.rb Disable automatic ennoblement of hostiocache 2014-05-29 10:27:00 -07:00
set_name.rb Use .key? instead of .has_key? 2015-01-05 18:29:01 -05:00
setup_package_files.rb Move pre-flight package validation to middleware 2016-05-27 17:07:04 -04:00
snapshot_delete.rb providers/virtualbox: list snapshots, progress for delete 2015-10-07 16:41:58 -04:00
snapshot_restore.rb providers/virtualbox: snapshot restore 2015-10-07 16:48:29 -04:00
snapshot_save.rb providers/virtualbox: snapshot save/delete 2015-10-07 16:16:53 -04:00
suspend.rb core: Use Machine#state wherever possible so we update the index 2014-04-21 13:51:23 -07:00