vagrant-lxc 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +14 -6
- data/Gemfile +19 -14
- data/Gemfile.lock +10 -5
- data/README.md +18 -42
- data/development/Vagrantfile.1.0 +3 -2
- data/lib/vagrant-lxc/version.rb +1 -1
- data/lib/vagrant-lxc.rb +0 -2
- data/vagrant-lxc.gemspec +1 -14
- metadata +7 -540
- data/.gitmodules +0 -3
- data/bin/vagrant-lxc +0 -9
- data/lib/vendored_vagrant.rb +0 -9
- data/vendor/.gitkeep +0 -0
- data/vendor/vagrant/.gitignore +0 -31
- data/vendor/vagrant/.travis.yml +0 -7
- data/vendor/vagrant/.yardopts +0 -1
- data/vendor/vagrant/CHANGELOG.md +0 -803
- data/vendor/vagrant/Gemfile +0 -3
- data/vendor/vagrant/LICENSE +0 -21
- data/vendor/vagrant/README.md +0 -89
- data/vendor/vagrant/Rakefile +0 -18
- data/vendor/vagrant/bin/vagrant +0 -84
- data/vendor/vagrant/config/default.rb +0 -35
- data/vendor/vagrant/contrib/README.md +0 -12
- data/vendor/vagrant/contrib/bash/completion.sh +0 -3
- data/vendor/vagrant/contrib/emacs/vagrant.el +0 -8
- data/vendor/vagrant/contrib/vim/vagrantfile.vim +0 -9
- data/vendor/vagrant/keys/README.md +0 -17
- data/vendor/vagrant/keys/vagrant +0 -27
- data/vendor/vagrant/keys/vagrant.pub +0 -1
- data/vendor/vagrant/lib/vagrant/action/builder.rb +0 -154
- data/vendor/vagrant/lib/vagrant/action/builtin/box_add.rb +0 -79
- data/vendor/vagrant/lib/vagrant/action/builtin/call.rb +0 -67
- data/vendor/vagrant/lib/vagrant/action/builtin/config_validate.rb +0 -30
- data/vendor/vagrant/lib/vagrant/action/builtin/confirm.rb +0 -38
- data/vendor/vagrant/lib/vagrant/action/builtin/env_set.rb +0 -24
- data/vendor/vagrant/lib/vagrant/action/builtin/graceful_halt.rb +0 -73
- data/vendor/vagrant/lib/vagrant/action/builtin/handle_box_url.rb +0 -43
- data/vendor/vagrant/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +0 -117
- data/vendor/vagrant/lib/vagrant/action/builtin/lock.rb +0 -57
- data/vendor/vagrant/lib/vagrant/action/builtin/nfs.rb +0 -117
- data/vendor/vagrant/lib/vagrant/action/builtin/provision.rb +0 -70
- data/vendor/vagrant/lib/vagrant/action/builtin/set_hostname.rb +0 -27
- data/vendor/vagrant/lib/vagrant/action/builtin/ssh_exec.rb +0 -42
- data/vendor/vagrant/lib/vagrant/action/builtin/ssh_run.rb +0 -43
- data/vendor/vagrant/lib/vagrant/action/general/package.rb +0 -102
- data/vendor/vagrant/lib/vagrant/action/hook.rb +0 -103
- data/vendor/vagrant/lib/vagrant/action/runner.rb +0 -69
- data/vendor/vagrant/lib/vagrant/action/warden.rb +0 -103
- data/vendor/vagrant/lib/vagrant/action.rb +0 -42
- data/vendor/vagrant/lib/vagrant/box.rb +0 -93
- data/vendor/vagrant/lib/vagrant/box_collection.rb +0 -315
- data/vendor/vagrant/lib/vagrant/cli.rb +0 -82
- data/vendor/vagrant/lib/vagrant/config/container.rb +0 -37
- data/vendor/vagrant/lib/vagrant/config/loader.rb +0 -222
- data/vendor/vagrant/lib/vagrant/config/v1/dummy_config.rb +0 -13
- data/vendor/vagrant/lib/vagrant/config/v1/loader.rb +0 -105
- data/vendor/vagrant/lib/vagrant/config/v1/root.rb +0 -60
- data/vendor/vagrant/lib/vagrant/config/v1.rb +0 -9
- data/vendor/vagrant/lib/vagrant/config/v2/dummy_config.rb +0 -13
- data/vendor/vagrant/lib/vagrant/config/v2/loader.rb +0 -141
- data/vendor/vagrant/lib/vagrant/config/v2/root.rb +0 -105
- data/vendor/vagrant/lib/vagrant/config/v2/util.rb +0 -21
- data/vendor/vagrant/lib/vagrant/config/v2.rb +0 -9
- data/vendor/vagrant/lib/vagrant/config/version_base.rb +0 -80
- data/vendor/vagrant/lib/vagrant/config.rb +0 -63
- data/vendor/vagrant/lib/vagrant/downloaders/base.rb +0 -22
- data/vendor/vagrant/lib/vagrant/downloaders/file.rb +0 -28
- data/vendor/vagrant/lib/vagrant/downloaders/http.rb +0 -116
- data/vendor/vagrant/lib/vagrant/downloaders.rb +0 -7
- data/vendor/vagrant/lib/vagrant/environment.rb +0 -729
- data/vendor/vagrant/lib/vagrant/errors.rb +0 -486
- data/vendor/vagrant/lib/vagrant/hosts.rb +0 -28
- data/vendor/vagrant/lib/vagrant/machine.rb +0 -325
- data/vendor/vagrant/lib/vagrant/machine_state.rb +0 -45
- data/vendor/vagrant/lib/vagrant/plugin/v1/command.rb +0 -169
- data/vendor/vagrant/lib/vagrant/plugin/v1/communicator.rb +0 -98
- data/vendor/vagrant/lib/vagrant/plugin/v1/config.rb +0 -112
- data/vendor/vagrant/lib/vagrant/plugin/v1/errors.rb +0 -15
- data/vendor/vagrant/lib/vagrant/plugin/v1/guest.rb +0 -92
- data/vendor/vagrant/lib/vagrant/plugin/v1/host.rb +0 -66
- data/vendor/vagrant/lib/vagrant/plugin/v1/manager.rb +0 -131
- data/vendor/vagrant/lib/vagrant/plugin/v1/plugin.rb +0 -229
- data/vendor/vagrant/lib/vagrant/plugin/v1/provider.rb +0 -68
- data/vendor/vagrant/lib/vagrant/plugin/v1/provisioner.rb +0 -50
- data/vendor/vagrant/lib/vagrant/plugin/v1.rb +0 -19
- data/vendor/vagrant/lib/vagrant/plugin/v2/command.rb +0 -234
- data/vendor/vagrant/lib/vagrant/plugin/v2/communicator.rb +0 -98
- data/vendor/vagrant/lib/vagrant/plugin/v2/components.rb +0 -29
- data/vendor/vagrant/lib/vagrant/plugin/v2/config.rb +0 -101
- data/vendor/vagrant/lib/vagrant/plugin/v2/errors.rb +0 -15
- data/vendor/vagrant/lib/vagrant/plugin/v2/guest.rb +0 -92
- data/vendor/vagrant/lib/vagrant/plugin/v2/host.rb +0 -66
- data/vendor/vagrant/lib/vagrant/plugin/v2/manager.rb +0 -158
- data/vendor/vagrant/lib/vagrant/plugin/v2/plugin.rb +0 -217
- data/vendor/vagrant/lib/vagrant/plugin/v2/provider.rb +0 -69
- data/vendor/vagrant/lib/vagrant/plugin/v2/provisioner.rb +0 -47
- data/vendor/vagrant/lib/vagrant/plugin/v2.rb +0 -22
- data/vendor/vagrant/lib/vagrant/plugin.rb +0 -6
- data/vendor/vagrant/lib/vagrant/registry.rb +0 -78
- data/vendor/vagrant/lib/vagrant/ssh.rb +0 -132
- data/vendor/vagrant/lib/vagrant/test_helpers.rb +0 -154
- data/vendor/vagrant/lib/vagrant/ui.rb +0 -170
- data/vendor/vagrant/lib/vagrant/util/ansi_escape_code_remover.rb +0 -34
- data/vendor/vagrant/lib/vagrant/util/busy.rb +0 -59
- data/vendor/vagrant/lib/vagrant/util/counter.rb +0 -24
- data/vendor/vagrant/lib/vagrant/util/file_checksum.rb +0 -38
- data/vendor/vagrant/lib/vagrant/util/file_mode.rb +0 -12
- data/vendor/vagrant/lib/vagrant/util/hash_with_indifferent_access.rb +0 -63
- data/vendor/vagrant/lib/vagrant/util/is_port_open.rb +0 -38
- data/vendor/vagrant/lib/vagrant/util/line_ending_helpers.rb +0 -14
- data/vendor/vagrant/lib/vagrant/util/network_ip.rb +0 -28
- data/vendor/vagrant/lib/vagrant/util/platform.rb +0 -68
- data/vendor/vagrant/lib/vagrant/util/retryable.rb +0 -31
- data/vendor/vagrant/lib/vagrant/util/safe_exec.rb +0 -36
- data/vendor/vagrant/lib/vagrant/util/safe_puts.rb +0 -31
- data/vendor/vagrant/lib/vagrant/util/scoped_hash_override.rb +0 -45
- data/vendor/vagrant/lib/vagrant/util/ssh.rb +0 -126
- data/vendor/vagrant/lib/vagrant/util/stacked_proc_runner.rb +0 -35
- data/vendor/vagrant/lib/vagrant/util/string_block_editor.rb +0 -75
- data/vendor/vagrant/lib/vagrant/util/subprocess.rb +0 -270
- data/vendor/vagrant/lib/vagrant/util/template_renderer.rb +0 -83
- data/vendor/vagrant/lib/vagrant/util/which.rb +0 -43
- data/vendor/vagrant/lib/vagrant/util.rb +0 -12
- data/vendor/vagrant/lib/vagrant/version.rb +0 -6
- data/vendor/vagrant/lib/vagrant.rb +0 -251
- data/vendor/vagrant/plugins/README.md +0 -5
- data/vendor/vagrant/plugins/commands/box/command/add.rb +0 -52
- data/vendor/vagrant/plugins/commands/box/command/list.rb +0 -41
- data/vendor/vagrant/plugins/commands/box/command/remove.rb +0 -37
- data/vendor/vagrant/plugins/commands/box/command/repackage.rb +0 -43
- data/vendor/vagrant/plugins/commands/box/command/root.rb +0 -75
- data/vendor/vagrant/plugins/commands/box/plugin.rb +0 -15
- data/vendor/vagrant/plugins/commands/destroy/command.rb +0 -31
- data/vendor/vagrant/plugins/commands/destroy/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/halt/command.rb +0 -33
- data/vendor/vagrant/plugins/commands/halt/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/init/command.rb +0 -40
- data/vendor/vagrant/plugins/commands/init/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/package/command.rb +0 -78
- data/vendor/vagrant/plugins/commands/package/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/plugin/action/bundler_check.rb +0 -25
- data/vendor/vagrant/plugins/commands/plugin/action/install_gem.rb +0 -70
- data/vendor/vagrant/plugins/commands/plugin/action/license_plugin.rb +0 -54
- data/vendor/vagrant/plugins/commands/plugin/action/list_plugins.rb +0 -54
- data/vendor/vagrant/plugins/commands/plugin/action/prune_gems.rb +0 -149
- data/vendor/vagrant/plugins/commands/plugin/action/uninstall_plugin.rb +0 -23
- data/vendor/vagrant/plugins/commands/plugin/action.rb +0 -52
- data/vendor/vagrant/plugins/commands/plugin/command/base.rb +0 -22
- data/vendor/vagrant/plugins/commands/plugin/command/install.rb +0 -39
- data/vendor/vagrant/plugins/commands/plugin/command/license.rb +0 -31
- data/vendor/vagrant/plugins/commands/plugin/command/list.rb +0 -28
- data/vendor/vagrant/plugins/commands/plugin/command/root.rb +0 -75
- data/vendor/vagrant/plugins/commands/plugin/command/uninstall.rb +0 -28
- data/vendor/vagrant/plugins/commands/plugin/gem_helper.rb +0 -74
- data/vendor/vagrant/plugins/commands/plugin/plugin.rb +0 -22
- data/vendor/vagrant/plugins/commands/plugin/state_file.rb +0 -57
- data/vendor/vagrant/plugins/commands/provision/command.rb +0 -34
- data/vendor/vagrant/plugins/commands/provision/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/reload/command.rb +0 -37
- data/vendor/vagrant/plugins/commands/reload/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/resume/command.rb +0 -25
- data/vendor/vagrant/plugins/commands/resume/plugin.rb +0 -17
- data/vendor/vagrant/plugins/commands/ssh/command.rb +0 -66
- data/vendor/vagrant/plugins/commands/ssh/plugin.rb +0 -17
- data/vendor/vagrant/plugins/commands/ssh_config/command.rb +0 -49
- data/vendor/vagrant/plugins/commands/ssh_config/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/status/command.rb +0 -39
- data/vendor/vagrant/plugins/commands/status/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/suspend/command.rb +0 -25
- data/vendor/vagrant/plugins/commands/suspend/plugin.rb +0 -18
- data/vendor/vagrant/plugins/commands/up/command.rb +0 -45
- data/vendor/vagrant/plugins/commands/up/plugin.rb +0 -17
- data/vendor/vagrant/plugins/commands/up/start_mixins.rb +0 -26
- data/vendor/vagrant/plugins/communicators/ssh/communicator.rb +0 -317
- data/vendor/vagrant/plugins/communicators/ssh/plugin.rb +0 -19
- data/vendor/vagrant/plugins/guests/arch/guest.rb +0 -41
- data/vendor/vagrant/plugins/guests/arch/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/debian/guest.rb +0 -72
- data/vendor/vagrant/plugins/guests/debian/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/fedora/guest.rb +0 -71
- data/vendor/vagrant/plugins/guests/fedora/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/freebsd/config.rb +0 -13
- data/vendor/vagrant/plugins/guests/freebsd/guest.rb +0 -70
- data/vendor/vagrant/plugins/guests/freebsd/plugin.rb +0 -20
- data/vendor/vagrant/plugins/guests/gentoo/guest.rb +0 -51
- data/vendor/vagrant/plugins/guests/gentoo/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/linux/config.rb +0 -13
- data/vendor/vagrant/plugins/guests/linux/guest.rb +0 -118
- data/vendor/vagrant/plugins/guests/linux/plugin.rb +0 -20
- data/vendor/vagrant/plugins/guests/openbsd/guest.rb +0 -13
- data/vendor/vagrant/plugins/guests/openbsd/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/redhat/guest.rb +0 -74
- data/vendor/vagrant/plugins/guests/redhat/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/solaris/config.rb +0 -18
- data/vendor/vagrant/plugins/guests/solaris/guest.rb +0 -73
- data/vendor/vagrant/plugins/guests/solaris/plugin.rb +0 -20
- data/vendor/vagrant/plugins/guests/suse/guest.rb +0 -24
- data/vendor/vagrant/plugins/guests/suse/plugin.rb +0 -15
- data/vendor/vagrant/plugins/guests/ubuntu/guest.rb +0 -44
- data/vendor/vagrant/plugins/guests/ubuntu/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/arch/host.rb +0 -68
- data/vendor/vagrant/plugins/hosts/arch/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/bsd/host.rb +0 -102
- data/vendor/vagrant/plugins/hosts/bsd/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/fedora/host.rb +0 -51
- data/vendor/vagrant/plugins/hosts/fedora/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/freebsd/host.rb +0 -43
- data/vendor/vagrant/plugins/hosts/freebsd/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/gentoo/host.rb +0 -24
- data/vendor/vagrant/plugins/hosts/gentoo/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/linux/host.rb +0 -95
- data/vendor/vagrant/plugins/hosts/linux/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/opensuse/host.rb +0 -34
- data/vendor/vagrant/plugins/hosts/opensuse/plugin.rb +0 -15
- data/vendor/vagrant/plugins/hosts/windows/host.rb +0 -17
- data/vendor/vagrant/plugins/hosts/windows/plugin.rb +0 -15
- data/vendor/vagrant/plugins/kernel_v1/config/nfs.rb +0 -20
- data/vendor/vagrant/plugins/kernel_v1/config/package.rb +0 -17
- data/vendor/vagrant/plugins/kernel_v1/config/ssh.rb +0 -46
- data/vendor/vagrant/plugins/kernel_v1/config/vagrant.rb +0 -31
- data/vendor/vagrant/plugins/kernel_v1/config/vm.rb +0 -184
- data/vendor/vagrant/plugins/kernel_v1/plugin.rb +0 -44
- data/vendor/vagrant/plugins/kernel_v2/config/nfs.rb +0 -10
- data/vendor/vagrant/plugins/kernel_v2/config/package.rb +0 -9
- data/vendor/vagrant/plugins/kernel_v2/config/ssh.rb +0 -35
- data/vendor/vagrant/plugins/kernel_v2/config/vagrant.rb +0 -9
- data/vendor/vagrant/plugins/kernel_v2/config/vm.rb +0 -314
- data/vendor/vagrant/plugins/kernel_v2/config/vm_provisioner.rb +0 -40
- data/vendor/vagrant/plugins/kernel_v2/config/vm_subvm.rb +0 -30
- data/vendor/vagrant/plugins/kernel_v2/plugin.rb +0 -44
- data/vendor/vagrant/plugins/providers/virtualbox/action/boot.rb +0 -49
- data/vendor/vagrant/plugins/providers/virtualbox/action/check_accessible.rb +0 -23
- data/vendor/vagrant/plugins/providers/virtualbox/action/check_created.rb +0 -21
- data/vendor/vagrant/plugins/providers/virtualbox/action/check_guest_additions.rb +0 -45
- data/vendor/vagrant/plugins/providers/virtualbox/action/check_running.rb +0 -21
- data/vendor/vagrant/plugins/providers/virtualbox/action/check_virtualbox.rb +0 -22
- data/vendor/vagrant/plugins/providers/virtualbox/action/clean_machine_folder.rb +0 -43
- data/vendor/vagrant/plugins/providers/virtualbox/action/clear_forwarded_ports.rb +0 -18
- data/vendor/vagrant/plugins/providers/virtualbox/action/clear_network_interfaces.rb +0 -31
- data/vendor/vagrant/plugins/providers/virtualbox/action/clear_shared_folders.rb +0 -17
- data/vendor/vagrant/plugins/providers/virtualbox/action/created.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/customize.rb +0 -36
- data/vendor/vagrant/plugins/providers/virtualbox/action/destroy.rb +0 -19
- data/vendor/vagrant/plugins/providers/virtualbox/action/destroy_confirm.rb +0 -17
- data/vendor/vagrant/plugins/providers/virtualbox/action/destroy_unused_network_interfaces.rb +0 -16
- data/vendor/vagrant/plugins/providers/virtualbox/action/discard_state.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/export.rb +0 -57
- data/vendor/vagrant/plugins/providers/virtualbox/action/forced_halt.rb +0 -25
- data/vendor/vagrant/plugins/providers/virtualbox/action/forward_ports.rb +0 -79
- data/vendor/vagrant/plugins/providers/virtualbox/action/import.rb +0 -51
- data/vendor/vagrant/plugins/providers/virtualbox/action/is_paused.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/is_running.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/is_saved.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/match_mac_address.rb +0 -21
- data/vendor/vagrant/plugins/providers/virtualbox/action/message_not_created.rb +0 -16
- data/vendor/vagrant/plugins/providers/virtualbox/action/message_not_running.rb +0 -16
- data/vendor/vagrant/plugins/providers/virtualbox/action/message_will_not_destroy.rb +0 -17
- data/vendor/vagrant/plugins/providers/virtualbox/action/network.rb +0 -366
- data/vendor/vagrant/plugins/providers/virtualbox/action/package.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/package_vagrantfile.rb +0 -33
- data/vendor/vagrant/plugins/providers/virtualbox/action/prepare_forwarded_port_collision_params.rb +0 -35
- data/vendor/vagrant/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +0 -51
- data/vendor/vagrant/plugins/providers/virtualbox/action/prune_nfs_exports.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action/resume.rb +0 -25
- data/vendor/vagrant/plugins/providers/virtualbox/action/sane_defaults.rb +0 -87
- data/vendor/vagrant/plugins/providers/virtualbox/action/set_name.rb +0 -40
- data/vendor/vagrant/plugins/providers/virtualbox/action/setup_package_files.rb +0 -51
- data/vendor/vagrant/plugins/providers/virtualbox/action/share_folders.rb +0 -113
- data/vendor/vagrant/plugins/providers/virtualbox/action/suspend.rb +0 -20
- data/vendor/vagrant/plugins/providers/virtualbox/action.rb +0 -308
- data/vendor/vagrant/plugins/providers/virtualbox/config.rb +0 -82
- data/vendor/vagrant/plugins/providers/virtualbox/driver/base.rb +0 -344
- data/vendor/vagrant/plugins/providers/virtualbox/driver/meta.rb +0 -141
- data/vendor/vagrant/plugins/providers/virtualbox/driver/version_4_0.rb +0 -481
- data/vendor/vagrant/plugins/providers/virtualbox/driver/version_4_1.rb +0 -481
- data/vendor/vagrant/plugins/providers/virtualbox/driver/version_4_2.rb +0 -471
- data/vendor/vagrant/plugins/providers/virtualbox/model/forwarded_port.rb +0 -58
- data/vendor/vagrant/plugins/providers/virtualbox/plugin.rb +0 -42
- data/vendor/vagrant/plugins/providers/virtualbox/provider.rb +0 -92
- data/vendor/vagrant/plugins/providers/virtualbox/util/compile_forwarded_ports.rb +0 -31
- data/vendor/vagrant/plugins/provisioners/chef/config/base.rb +0 -65
- data/vendor/vagrant/plugins/provisioners/chef/config/chef_client.rb +0 -39
- data/vendor/vagrant/plugins/provisioners/chef/config/chef_solo.rb +0 -87
- data/vendor/vagrant/plugins/provisioners/chef/plugin.rb +0 -33
- data/vendor/vagrant/plugins/provisioners/chef/provisioner/base.rb +0 -91
- data/vendor/vagrant/plugins/provisioners/chef/provisioner/chef_client.rb +0 -103
- data/vendor/vagrant/plugins/provisioners/chef/provisioner/chef_solo.rb +0 -182
- data/vendor/vagrant/plugins/provisioners/puppet/config/puppet.rb +0 -70
- data/vendor/vagrant/plugins/provisioners/puppet/config/puppet_server.rb +0 -16
- data/vendor/vagrant/plugins/provisioners/puppet/plugin.rb +0 -33
- data/vendor/vagrant/plugins/provisioners/puppet/provisioner/puppet.rb +0 -110
- data/vendor/vagrant/plugins/provisioners/puppet/provisioner/puppet_server.rb +0 -67
- data/vendor/vagrant/plugins/provisioners/shell/config.rb +0 -46
- data/vendor/vagrant/plugins/provisioners/shell/plugin.rb +0 -23
- data/vendor/vagrant/plugins/provisioners/shell/provisioner.rb +0 -66
- data/vendor/vagrant/tasks/acceptance.rake +0 -113
- data/vendor/vagrant/tasks/bundler.rake +0 -3
- data/vendor/vagrant/tasks/test.rake +0 -20
- data/vendor/vagrant/templates/commands/init/Vagrantfile.erb +0 -111
- data/vendor/vagrant/templates/commands/ssh_config/config.erb +0 -16
- data/vendor/vagrant/templates/config/messages.erb +0 -14
- data/vendor/vagrant/templates/config/validation_failed.erb +0 -7
- data/vendor/vagrant/templates/guests/arch/network_dhcp.erb +0 -4
- data/vendor/vagrant/templates/guests/arch/network_static.erb +0 -6
- data/vendor/vagrant/templates/guests/debian/network_dhcp.erb +0 -11
- data/vendor/vagrant/templates/guests/debian/network_static.erb +0 -7
- data/vendor/vagrant/templates/guests/fedora/network_dhcp.erb +0 -6
- data/vendor/vagrant/templates/guests/fedora/network_static.erb +0 -13
- data/vendor/vagrant/templates/guests/freebsd/network_dhcp.erb +0 -3
- data/vendor/vagrant/templates/guests/freebsd/network_static.erb +0 -3
- data/vendor/vagrant/templates/guests/gentoo/network_dhcp.erb +0 -4
- data/vendor/vagrant/templates/guests/gentoo/network_static.erb +0 -4
- data/vendor/vagrant/templates/guests/redhat/network_dhcp.erb +0 -6
- data/vendor/vagrant/templates/guests/redhat/network_static.erb +0 -7
- data/vendor/vagrant/templates/locales/en.yml +0 -993
- data/vendor/vagrant/templates/nfs/exports.erb +0 -5
- data/vendor/vagrant/templates/nfs/exports_freebsd.erb +0 -5
- data/vendor/vagrant/templates/nfs/exports_linux.erb +0 -5
- data/vendor/vagrant/templates/package_Vagrantfile.erb +0 -11
- data/vendor/vagrant/templates/provisioners/chef_client/client.erb +0 -32
- data/vendor/vagrant/templates/provisioners/chef_solo/solo.erb +0 -25
- data/vendor/vagrant/templates/rgloader.rb +0 -9
- data/vendor/vagrant/test/acceptance/base.rb +0 -48
- data/vendor/vagrant/test/acceptance/box_test.rb +0 -99
- data/vendor/vagrant/test/acceptance/destroy_test.rb +0 -37
- data/vendor/vagrant/test/acceptance/halt_test.rb +0 -72
- data/vendor/vagrant/test/acceptance/init_test.rb +0 -33
- data/vendor/vagrant/test/acceptance/networking/host_only_test.rb +0 -37
- data/vendor/vagrant/test/acceptance/networking/port_forward_test.rb +0 -125
- data/vendor/vagrant/test/acceptance/package_test.rb +0 -46
- data/vendor/vagrant/test/acceptance/provisioning/basic_test.rb +0 -61
- data/vendor/vagrant/test/acceptance/provisioning/chef_solo_test.rb +0 -37
- data/vendor/vagrant/test/acceptance/provisioning/shell_test.rb +0 -53
- data/vendor/vagrant/test/acceptance/resume_test.rb +0 -17
- data/vendor/vagrant/test/acceptance/shared_folders_test.rb +0 -84
- data/vendor/vagrant/test/acceptance/skeletons/chef_solo_basic/README.md +0 -3
- data/vendor/vagrant/test/acceptance/skeletons/chef_solo_basic/cookbooks/basic/recipes/default.rb +0 -5
- data/vendor/vagrant/test/acceptance/skeletons/chef_solo_json/README.md +0 -3
- data/vendor/vagrant/test/acceptance/skeletons/chef_solo_json/cookbooks/basic/recipes/default.rb +0 -6
- data/vendor/vagrant/test/acceptance/skeletons/provisioner_multi/README.md +0 -3
- data/vendor/vagrant/test/acceptance/skeletons/provisioner_multi/cookbooks/basic/recipes/default.rb +0 -5
- data/vendor/vagrant/test/acceptance/ssh_test.rb +0 -46
- data/vendor/vagrant/test/acceptance/support/config.rb +0 -42
- data/vendor/vagrant/test/acceptance/support/isolated_environment.rb +0 -118
- data/vendor/vagrant/test/acceptance/support/matchers/have_color.rb +0 -9
- data/vendor/vagrant/test/acceptance/support/matchers/match_output.rb +0 -14
- data/vendor/vagrant/test/acceptance/support/matchers/succeed.rb +0 -14
- data/vendor/vagrant/test/acceptance/support/network_tests.rb +0 -29
- data/vendor/vagrant/test/acceptance/support/output.rb +0 -95
- data/vendor/vagrant/test/acceptance/support/shared/base_context.rb +0 -72
- data/vendor/vagrant/test/acceptance/support/shared/command_examples.rb +0 -33
- data/vendor/vagrant/test/acceptance/support/virtualbox.rb +0 -36
- data/vendor/vagrant/test/acceptance/suspend_test.rb +0 -56
- data/vendor/vagrant/test/acceptance/up_basic_test.rb +0 -33
- data/vendor/vagrant/test/acceptance/up_with_box_url.rb +0 -40
- data/vendor/vagrant/test/acceptance/vagrant_test.rb +0 -47
- data/vendor/vagrant/test/acceptance/version_test.rb +0 -15
- data/vendor/vagrant/test/config/acceptance_boxes.yml +0 -7
- data/vendor/vagrant/test/support/isolated_environment.rb +0 -46
- data/vendor/vagrant/test/support/tempdir.rb +0 -43
- data/vendor/vagrant/test/unit/base.rb +0 -27
- data/vendor/vagrant/test/unit/support/dummy_provider.rb +0 -16
- data/vendor/vagrant/test/unit/support/isolated_environment.rb +0 -177
- data/vendor/vagrant/test/unit/support/shared/base_context.rb +0 -104
- data/vendor/vagrant/test/unit/vagrant/action/builder_test.rb +0 -196
- data/vendor/vagrant/test/unit/vagrant/action/builtin/call_test.rb +0 -145
- data/vendor/vagrant/test/unit/vagrant/action/builtin/confirm_test.rb +0 -36
- data/vendor/vagrant/test/unit/vagrant/action/builtin/env_set_test.rb +0 -20
- data/vendor/vagrant/test/unit/vagrant/action/builtin/graceful_halt_test.rb +0 -61
- data/vendor/vagrant/test/unit/vagrant/action/builtin/lock_test.rb +0 -98
- data/vendor/vagrant/test/unit/vagrant/action/builtin/ssh_exec_test.rb +0 -57
- data/vendor/vagrant/test/unit/vagrant/action/hook_test.rb +0 -101
- data/vendor/vagrant/test/unit/vagrant/action/runner_test.rb +0 -71
- data/vendor/vagrant/test/unit/vagrant/action/warden_test.rb +0 -92
- data/vendor/vagrant/test/unit/vagrant/box_collection_test.rb +0 -224
- data/vendor/vagrant/test/unit/vagrant/box_test.rb +0 -109
- data/vendor/vagrant/test/unit/vagrant/cli_test.rb +0 -27
- data/vendor/vagrant/test/unit/vagrant/config/loader_test.rb +0 -184
- data/vendor/vagrant/test/unit/vagrant/config/v1/dummy_config_test.rb +0 -24
- data/vendor/vagrant/test/unit/vagrant/config/v1/loader_test.rb +0 -145
- data/vendor/vagrant/test/unit/vagrant/config/v1/root_test.rb +0 -40
- data/vendor/vagrant/test/unit/vagrant/config/v2/dummy_config_test.rb +0 -24
- data/vendor/vagrant/test/unit/vagrant/config/v2/loader_test.rb +0 -151
- data/vendor/vagrant/test/unit/vagrant/config/v2/root_test.rb +0 -97
- data/vendor/vagrant/test/unit/vagrant/config/v2/util_test.rb +0 -21
- data/vendor/vagrant/test/unit/vagrant/config_test.rb +0 -66
- data/vendor/vagrant/test/unit/vagrant/downloaders/base_test.rb +0 -14
- data/vendor/vagrant/test/unit/vagrant/downloaders/file_test.rb +0 -87
- data/vendor/vagrant/test/unit/vagrant/downloaders/http_test.rb +0 -23
- data/vendor/vagrant/test/unit/vagrant/environment_test.rb +0 -571
- data/vendor/vagrant/test/unit/vagrant/hosts_test.rb +0 -37
- data/vendor/vagrant/test/unit/vagrant/machine_state_test.rb +0 -26
- data/vendor/vagrant/test/unit/vagrant/machine_test.rb +0 -418
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/command_test.rb +0 -143
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/communicator_test.rb +0 -9
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/config_test.rb +0 -50
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/host_test.rb +0 -5
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/manager_test.rb +0 -114
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/plugin_test.rb +0 -267
- data/vendor/vagrant/test/unit/vagrant/plugin/v1/provider_test.rb +0 -18
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/command_test.rb +0 -238
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/communicator_test.rb +0 -9
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/components_test.rb +0 -17
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/config_test.rb +0 -60
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/host_test.rb +0 -5
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/manager_test.rb +0 -157
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/plugin_test.rb +0 -287
- data/vendor/vagrant/test/unit/vagrant/plugin/v2/provider_test.rb +0 -18
- data/vendor/vagrant/test/unit/vagrant/registry_test.rb +0 -128
- data/vendor/vagrant/test/unit/vagrant/util/ansi_escape_code_remover_test.rb +0 -16
- data/vendor/vagrant/test/unit/vagrant/util/file_checksum_test.rb +0 -23
- data/vendor/vagrant/test/unit/vagrant/util/hash_with_indifferent_access_test.rb +0 -38
- data/vendor/vagrant/test/unit/vagrant/util/is_port_open_test.rb +0 -53
- data/vendor/vagrant/test/unit/vagrant/util/line_endings_helper_test.rb +0 -16
- data/vendor/vagrant/test/unit/vagrant/util/network_ip_test.rb +0 -17
- data/vendor/vagrant/test/unit/vagrant/util/retryable_test.rb +0 -106
- data/vendor/vagrant/test/unit/vagrant/util/scoped_hash_override_test.rb +0 -48
- data/vendor/vagrant/test/unit/vagrant/util/ssh_test.rb +0 -30
- data/vendor/vagrant/test/unit/vagrant/util/string_block_editor_test.rb +0 -98
- data/vendor/vagrant/test/unit/vagrant/util/which_test.rb +0 -43
- data/vendor/vagrant/test/unit/vagrant_test.rb +0 -56
- data/vendor/vagrant/vagrant.gemspec +0 -69
@@ -1,60 +0,0 @@
|
|
1
|
-
require "set"
|
2
|
-
|
3
|
-
module Vagrant
|
4
|
-
module Config
|
5
|
-
module V1
|
6
|
-
# This is the root configuration class. An instance of this is what
|
7
|
-
# is passed into version 1 Vagrant configuration blocks.
|
8
|
-
class Root
|
9
|
-
# Initializes a root object that maps the given keys to specific
|
10
|
-
# configuration classes.
|
11
|
-
#
|
12
|
-
# @param [Hash] config_map Map of key to config class.
|
13
|
-
def initialize(config_map, keys=nil)
|
14
|
-
@keys = keys || {}
|
15
|
-
@config_map = config_map
|
16
|
-
@missing_key_calls = Set.new
|
17
|
-
end
|
18
|
-
|
19
|
-
# We use method_missing as a way to get the configuration that is
|
20
|
-
# used for Vagrant and load the proper configuration classes for
|
21
|
-
# each.
|
22
|
-
def method_missing(name, *args)
|
23
|
-
return @keys[name] if @keys.has_key?(name)
|
24
|
-
|
25
|
-
config_klass = @config_map[name.to_sym]
|
26
|
-
if config_klass
|
27
|
-
# Instantiate the class and return the instance
|
28
|
-
@keys[name] = config_klass.new
|
29
|
-
return @keys[name]
|
30
|
-
else
|
31
|
-
# Record access to a missing key as an error
|
32
|
-
@missing_key_calls.add(name.to_s)
|
33
|
-
return DummyConfig.new
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
# Called to finalize this object just prior to it being used by
|
38
|
-
# the Vagrant system. The "!" signifies that this is expected to
|
39
|
-
# mutate itself.
|
40
|
-
def finalize!
|
41
|
-
@keys.each do |_key, instance|
|
42
|
-
instance.finalize!
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
# Returns the internal state of the root object. This is used
|
47
|
-
# by outside classes when merging, and shouldn't be called directly.
|
48
|
-
# Note the strange method name is to attempt to avoid any name
|
49
|
-
# clashes with potential configuration keys.
|
50
|
-
def __internal_state
|
51
|
-
{
|
52
|
-
"config_map" => @config_map,
|
53
|
-
"keys" => @keys,
|
54
|
-
"missing_key_calls" => @missing_key_calls
|
55
|
-
}
|
56
|
-
end
|
57
|
-
end
|
58
|
-
end
|
59
|
-
end
|
60
|
-
end
|
@@ -1,13 +0,0 @@
|
|
1
|
-
module Vagrant
|
2
|
-
module Config
|
3
|
-
module V2
|
4
|
-
# This is a configuration object that can have anything done
|
5
|
-
# to it. Anything, and it just appears to keep working.
|
6
|
-
class DummyConfig
|
7
|
-
def method_missing(name, *args, &block)
|
8
|
-
DummyConfig.new
|
9
|
-
end
|
10
|
-
end
|
11
|
-
end
|
12
|
-
end
|
13
|
-
end
|
@@ -1,141 +0,0 @@
|
|
1
|
-
require "vagrant/config/v2/root"
|
2
|
-
|
3
|
-
module Vagrant
|
4
|
-
module Config
|
5
|
-
module V2
|
6
|
-
# This is the loader that handles configuration loading for V2
|
7
|
-
# configurations.
|
8
|
-
class Loader < VersionBase
|
9
|
-
# Returns a bare empty configuration object.
|
10
|
-
#
|
11
|
-
# @return [V2::Root]
|
12
|
-
def self.init
|
13
|
-
new_root_object
|
14
|
-
end
|
15
|
-
|
16
|
-
# Finalizes the configuration by making sure there is at least
|
17
|
-
# one VM defined in it.
|
18
|
-
def self.finalize(config)
|
19
|
-
# Call the `#finalize` method on each of the configuration keys.
|
20
|
-
# They're expected to modify themselves in our case.
|
21
|
-
config.finalize!
|
22
|
-
|
23
|
-
# Return the object
|
24
|
-
config
|
25
|
-
end
|
26
|
-
|
27
|
-
# Loads the configuration for the given proc and returns a configuration
|
28
|
-
# object.
|
29
|
-
#
|
30
|
-
# @param [Proc] config_proc
|
31
|
-
# @return [Object]
|
32
|
-
def self.load(config_proc)
|
33
|
-
# Create a root configuration object
|
34
|
-
root = new_root_object
|
35
|
-
|
36
|
-
# Call the proc with the root
|
37
|
-
config_proc.call(root)
|
38
|
-
|
39
|
-
# Return the root object, which doubles as the configuration object
|
40
|
-
# we actually use for accessing as well.
|
41
|
-
root
|
42
|
-
end
|
43
|
-
|
44
|
-
# Merges two configuration objects.
|
45
|
-
#
|
46
|
-
# @param [V2::Root] old The older root config.
|
47
|
-
# @param [V2::Root] new The newer root config.
|
48
|
-
# @return [V2::Root]
|
49
|
-
def self.merge(old, new)
|
50
|
-
# Grab the internal states, we use these heavily throughout the process
|
51
|
-
old_state = old.__internal_state
|
52
|
-
new_state = new.__internal_state
|
53
|
-
|
54
|
-
# The config map for the new object is the old one merged with the
|
55
|
-
# new one.
|
56
|
-
config_map = old_state["config_map"].merge(new_state["config_map"])
|
57
|
-
|
58
|
-
# Merge the keys.
|
59
|
-
old_keys = old_state["keys"]
|
60
|
-
new_keys = new_state["keys"]
|
61
|
-
keys = {}
|
62
|
-
old_keys.each do |key, old_value|
|
63
|
-
if new_keys.has_key?(key)
|
64
|
-
# We need to do a merge, which we expect to be available
|
65
|
-
# on the config class itself.
|
66
|
-
keys[key] = old_value.merge(new_keys[key])
|
67
|
-
else
|
68
|
-
# We just take the old value, but dup it so that we can modify.
|
69
|
-
keys[key] = old_value.dup
|
70
|
-
end
|
71
|
-
end
|
72
|
-
|
73
|
-
new_keys.each do |key, new_value|
|
74
|
-
# Add in the keys that the new class has that we haven't merged.
|
75
|
-
if !keys.has_key?(key)
|
76
|
-
keys[key] = new_value.dup
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
# Merge the missing keys
|
81
|
-
new_missing_key_calls =
|
82
|
-
old_state["missing_key_calls"] + new_state["missing_key_calls"]
|
83
|
-
|
84
|
-
# Return the final root object
|
85
|
-
V2::Root.new(config_map).tap do |result|
|
86
|
-
result.__set_internal_state({
|
87
|
-
"config_map" => config_map,
|
88
|
-
"keys" => keys,
|
89
|
-
"missing_key_calls" => new_missing_key_calls
|
90
|
-
})
|
91
|
-
end
|
92
|
-
end
|
93
|
-
|
94
|
-
# Upgrade a V1 configuration to a V2 configuration. We do this by
|
95
|
-
# creating a V2 configuration, and calling "upgrade" on each of the
|
96
|
-
# V1 configurations, expecting them to set the right settings on the
|
97
|
-
# new root.
|
98
|
-
#
|
99
|
-
# @param [V1::Root] old
|
100
|
-
# @return [Array] A 3-tuple result.
|
101
|
-
def self.upgrade(old)
|
102
|
-
# Get a new root
|
103
|
-
root = new_root_object
|
104
|
-
|
105
|
-
# Store the warnings/errors
|
106
|
-
warnings = []
|
107
|
-
errors = []
|
108
|
-
|
109
|
-
# Go through the old keys and upgrade them if they can be
|
110
|
-
old.__internal_state["keys"].each do |_, old_value|
|
111
|
-
if old_value.respond_to?(:upgrade)
|
112
|
-
result = old_value.upgrade(root)
|
113
|
-
|
114
|
-
# Sanity check to guard against random return values
|
115
|
-
if result.is_a?(Array)
|
116
|
-
warnings += result[0]
|
117
|
-
errors += result[1]
|
118
|
-
end
|
119
|
-
end
|
120
|
-
end
|
121
|
-
|
122
|
-
old.__internal_state["missing_key_calls"].to_a.sort.each do |key|
|
123
|
-
warnings << I18n.t("vagrant.config.loader.bad_v1_key", :key => key)
|
124
|
-
end
|
125
|
-
|
126
|
-
[root, warnings, errors]
|
127
|
-
end
|
128
|
-
|
129
|
-
protected
|
130
|
-
|
131
|
-
def self.new_root_object
|
132
|
-
# Get all the registered plugins for V2
|
133
|
-
config_map = Vagrant.plugin("2").manager.config
|
134
|
-
|
135
|
-
# Create the configuration root object
|
136
|
-
V2::Root.new(config_map)
|
137
|
-
end
|
138
|
-
end
|
139
|
-
end
|
140
|
-
end
|
141
|
-
end
|
@@ -1,105 +0,0 @@
|
|
1
|
-
require "set"
|
2
|
-
|
3
|
-
require "vagrant/config/v2/util"
|
4
|
-
|
5
|
-
module Vagrant
|
6
|
-
module Config
|
7
|
-
module V2
|
8
|
-
# This is the root configuration class. An instance of this is what
|
9
|
-
# is passed into version 1 Vagrant configuration blocks.
|
10
|
-
class Root
|
11
|
-
# Initializes a root object that maps the given keys to specific
|
12
|
-
# configuration classes.
|
13
|
-
#
|
14
|
-
# @param [Hash] config_map Map of key to config class.
|
15
|
-
def initialize(config_map, keys=nil)
|
16
|
-
@keys = keys || {}
|
17
|
-
@config_map = config_map
|
18
|
-
@missing_key_calls = Set.new
|
19
|
-
end
|
20
|
-
|
21
|
-
# We use method_missing as a way to get the configuration that is
|
22
|
-
# used for Vagrant and load the proper configuration classes for
|
23
|
-
# each.
|
24
|
-
def method_missing(name, *args)
|
25
|
-
return @keys[name] if @keys.has_key?(name)
|
26
|
-
|
27
|
-
config_klass = @config_map[name.to_sym]
|
28
|
-
if config_klass
|
29
|
-
# Instantiate the class and return the instance
|
30
|
-
@keys[name] = config_klass.new
|
31
|
-
return @keys[name]
|
32
|
-
else
|
33
|
-
# Record access to a missing key as an error
|
34
|
-
@missing_key_calls.add(name.to_s)
|
35
|
-
return DummyConfig.new
|
36
|
-
end
|
37
|
-
end
|
38
|
-
|
39
|
-
# Called to finalize this object just prior to it being used by
|
40
|
-
# the Vagrant system. The "!" signifies that this is expected to
|
41
|
-
# mutate itself.
|
42
|
-
def finalize!
|
43
|
-
@keys.each do |_key, instance|
|
44
|
-
instance.finalize!
|
45
|
-
end
|
46
|
-
end
|
47
|
-
|
48
|
-
# This validates the configuration and returns a hash of error
|
49
|
-
# messages by section. If there are no errors, an empty hash
|
50
|
-
# is returned.
|
51
|
-
#
|
52
|
-
# @param [Environment] env
|
53
|
-
# @return [Hash]
|
54
|
-
def validate(machine)
|
55
|
-
# Go through each of the configuration keys and validate
|
56
|
-
errors = {}
|
57
|
-
@keys.each do |_key, instance|
|
58
|
-
if instance.respond_to?(:validate)
|
59
|
-
# Validate this single item, and if we have errors then
|
60
|
-
# we merge them into our total errors list.
|
61
|
-
result = instance.validate(machine)
|
62
|
-
if result && !result.empty?
|
63
|
-
errors = Util.merge_errors(errors, result)
|
64
|
-
end
|
65
|
-
end
|
66
|
-
end
|
67
|
-
|
68
|
-
# Go through and delete empty keys
|
69
|
-
errors.keys.each do |key|
|
70
|
-
errors.delete(key) if errors[key].empty?
|
71
|
-
end
|
72
|
-
|
73
|
-
# If we have missing keys, record those as errors
|
74
|
-
if !@missing_key_calls.empty?
|
75
|
-
errors["Vagrant"] = @missing_key_calls.to_a.sort.map do |key|
|
76
|
-
I18n.t("vagrant.config.root.bad_key", :key => key)
|
77
|
-
end
|
78
|
-
end
|
79
|
-
|
80
|
-
errors
|
81
|
-
end
|
82
|
-
|
83
|
-
# Returns the internal state of the root object. This is used
|
84
|
-
# by outside classes when merging, and shouldn't be called directly.
|
85
|
-
# Note the strange method name is to attempt to avoid any name
|
86
|
-
# clashes with potential configuration keys.
|
87
|
-
def __internal_state
|
88
|
-
{
|
89
|
-
"config_map" => @config_map,
|
90
|
-
"keys" => @keys,
|
91
|
-
"missing_key_calls" => @missing_key_calls
|
92
|
-
}
|
93
|
-
end
|
94
|
-
|
95
|
-
# This sets the internal state. This is used by the core to do some
|
96
|
-
# merging logic and shouldn't be used by the general public.
|
97
|
-
def __set_internal_state(state)
|
98
|
-
@config_map = state["config_map"] if state.has_key?("config_map")
|
99
|
-
@keys = state["keys"] if state.has_key?("keys")
|
100
|
-
@missing_key_calls = state["missing_key_calls"] if state.has_key?("missing_key_calls")
|
101
|
-
end
|
102
|
-
end
|
103
|
-
end
|
104
|
-
end
|
105
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
module Vagrant
|
2
|
-
module Config
|
3
|
-
module V2
|
4
|
-
class Util
|
5
|
-
# This merges two error hashes from validate methods.
|
6
|
-
#
|
7
|
-
# @param [Hash] first
|
8
|
-
# @param [Hash] second
|
9
|
-
# @return [Hash] Merged result
|
10
|
-
def self.merge_errors(first, second)
|
11
|
-
first.dup.tap do |result|
|
12
|
-
second.each do |key, value|
|
13
|
-
result[key] ||= []
|
14
|
-
result[key] += value
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|
19
|
-
end
|
20
|
-
end
|
21
|
-
end
|
@@ -1,80 +0,0 @@
|
|
1
|
-
module Vagrant
|
2
|
-
module Config
|
3
|
-
# This is the base class for any configuration versions, and includes
|
4
|
-
# the stub methods that configuaration versions must implement. Vagrant
|
5
|
-
# supports configuration versioning so that backwards compatibility can be
|
6
|
-
# maintained for past Vagrantfiles while newer configurations are added.
|
7
|
-
# Vagrant only introduces new configuration versions for major versions
|
8
|
-
# of Vagrant.
|
9
|
-
class VersionBase
|
10
|
-
# Returns an empty configuration object. This can be any kind of object,
|
11
|
-
# since it is treated as an opaque value on the other side, used only
|
12
|
-
# for things like calling into {merge}.
|
13
|
-
#
|
14
|
-
# @return [Object]
|
15
|
-
def self.init
|
16
|
-
raise NotImplementedError
|
17
|
-
end
|
18
|
-
|
19
|
-
# This is called just before configuration loading is complete of
|
20
|
-
# a potentially completely-merged value to perform final touch-ups
|
21
|
-
# to the configuration, if required.
|
22
|
-
#
|
23
|
-
# This is an optional method to implement. The default implementation
|
24
|
-
# will simply return the same object.
|
25
|
-
#
|
26
|
-
# This will ONLY be called if this is the version that is being
|
27
|
-
# used. In the case that an `upgrade` is called, this will never
|
28
|
-
# be called.
|
29
|
-
#
|
30
|
-
# @param [Object] obj Final configuration object.
|
31
|
-
# @param [Object] Finalized configuration object.
|
32
|
-
def self.finalize(obj)
|
33
|
-
obj
|
34
|
-
end
|
35
|
-
|
36
|
-
# Loads the configuration for the given proc and returns a configuration
|
37
|
-
# object. The return value is treated as an opaque object, so it can be
|
38
|
-
# anything you'd like. The return value is the object that is passed
|
39
|
-
# into methods like {merge}, so it should be something you expect.
|
40
|
-
#
|
41
|
-
# @param [Proc] proc The proc that is to be configured.
|
42
|
-
# @return [Object]
|
43
|
-
def self.load(proc)
|
44
|
-
raise NotImplementedError
|
45
|
-
end
|
46
|
-
|
47
|
-
# Merges two configuration objects, returning the merged object.
|
48
|
-
# The values of `old` and `new` are the opaque objects returned by
|
49
|
-
# {load} or {init}.
|
50
|
-
#
|
51
|
-
# Once again, the return object is treated as an opaque value by
|
52
|
-
# the Vagrant configuration loader, so it can be anything you'd like.
|
53
|
-
#
|
54
|
-
# @param [Object] old Old configuration object.
|
55
|
-
# @param [Object] new New configuration object.
|
56
|
-
# @return [Object] The merged configuration object.
|
57
|
-
def self.merge(old, new)
|
58
|
-
raise NotImplementedError
|
59
|
-
end
|
60
|
-
|
61
|
-
# This is called if a previous version of configuration needs to be
|
62
|
-
# upgraded to this version. Each version of configuration should know
|
63
|
-
# how to upgrade the version immediately prior to it. This should be
|
64
|
-
# a best effort upgrade that makes many assumptions. The goal is for
|
65
|
-
# this to work in almost every case, but perhaps with some warnings.
|
66
|
-
# The return value for this is a 3-tuple: `[object, warnings, errors]`,
|
67
|
-
# where `object` is the upgraded configuration object, `warnings` is
|
68
|
-
# an array of warning messages, and `errors` is an array of error
|
69
|
-
# messages.
|
70
|
-
#
|
71
|
-
# @param [Object] old The version of the configuration object just
|
72
|
-
# prior to this one.
|
73
|
-
# @return [Array] The 3-tuple result. Please see the above documentation
|
74
|
-
# for more information on the exact structure of this object.
|
75
|
-
def self.upgrade(old)
|
76
|
-
raise NotImplementedError
|
77
|
-
end
|
78
|
-
end
|
79
|
-
end
|
80
|
-
end
|