tnargav 1.2.3 → 1.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +19 -3
- data/CHANGELOG.md +311 -0
- data/bin/vagrant +12 -0
- data/config/default.rb +2 -4
- data/keys/README.md +0 -7
- data/lib/vagrant.rb +7 -0
- data/lib/vagrant/action.rb +2 -0
- data/lib/vagrant/action/builtin/box_add.rb +12 -1
- data/lib/vagrant/action/builtin/confirm.rb +1 -0
- data/lib/vagrant/action/builtin/graceful_halt.rb +9 -5
- data/lib/vagrant/action/builtin/handle_box_url.rb +16 -7
- data/lib/vagrant/action/builtin/handle_forwarded_port_collisions.rb +1 -1
- data/lib/vagrant/action/builtin/mixin_provisioners.rb +43 -0
- data/lib/vagrant/action/builtin/nfs.rb +18 -8
- data/lib/vagrant/action/builtin/provision.rb +30 -21
- data/lib/vagrant/action/builtin/provisioner_cleanup.rb +35 -0
- data/lib/vagrant/action/builtin/wait_for_communicator.rb +84 -0
- data/lib/vagrant/action/warden.rb +2 -1
- data/lib/vagrant/box_collection.rb +62 -44
- data/lib/vagrant/cli.rb +1 -9
- data/lib/vagrant/config/v2/root.rb +6 -0
- data/lib/vagrant/environment.rb +27 -51
- data/lib/vagrant/errors.rb +33 -1
- data/lib/vagrant/guest.rb +2 -2
- data/lib/vagrant/machine.rb +14 -22
- data/lib/vagrant/plugin/v2/command.rb +4 -1
- data/lib/vagrant/plugin/v2/communicator.rb +21 -0
- data/lib/vagrant/plugin/v2/guest.rb +1 -56
- data/lib/vagrant/plugin/v2/provisioner.rb +6 -0
- data/lib/vagrant/util/downloader.rb +7 -2
- data/lib/vagrant/util/platform.rb +43 -0
- data/lib/vagrant/util/ssh.rb +5 -0
- data/lib/vagrant/util/subprocess.rb +16 -2
- data/lib/vagrant/version.rb +1 -1
- data/plugins/commands/box/command/remove.rb +22 -2
- data/plugins/commands/box/command/repackage.rb +1 -1
- data/plugins/commands/destroy/command.rb +8 -3
- data/plugins/commands/help/command.rb +12 -0
- data/plugins/commands/help/plugin.rb +17 -0
- data/plugins/commands/plugin/action.rb +11 -0
- data/plugins/commands/plugin/action/install_gem.rb +26 -1
- data/plugins/commands/plugin/action/plugin_exists_check.rb +26 -0
- data/plugins/commands/plugin/command/install.rb +4 -21
- data/plugins/commands/plugin/command/mixin_install_opts.rb +30 -0
- data/plugins/commands/plugin/command/root.rb +5 -0
- data/plugins/commands/plugin/command/update.rb +41 -0
- data/plugins/commands/reload/command.rb +4 -0
- data/plugins/commands/status/command.rb +6 -1
- data/plugins/commands/up/command.rb +10 -0
- data/plugins/commands/up/start_mixins.rb +12 -1
- data/plugins/communicators/ssh/communicator.rb +61 -6
- data/plugins/guests/arch/cap/change_host_name.rb +1 -2
- data/plugins/guests/arch/cap/configure_networks.rb +6 -0
- data/plugins/guests/coreos/cap/change_host_name.rb +15 -0
- data/plugins/guests/coreos/cap/configure_networks.rb +72 -0
- data/plugins/guests/coreos/guest.rb +9 -0
- data/plugins/guests/coreos/plugin.rb +25 -0
- data/plugins/guests/darwin/cap/change_host_name.rb +14 -0
- data/plugins/guests/darwin/cap/configure_networks.rb +52 -0
- data/plugins/guests/darwin/cap/halt.rb +16 -0
- data/plugins/guests/darwin/cap/mount_nfs_folder.rb +25 -0
- data/plugins/guests/darwin/cap/mount_vmware_shared_folder.rb +36 -0
- data/plugins/guests/darwin/cap/shell_expand_guest_path.rb +26 -0
- data/plugins/guests/darwin/cap/verify_vmware_hgfs.rb +12 -0
- data/plugins/guests/darwin/guest.rb +15 -0
- data/plugins/guests/darwin/plugin.rb +50 -0
- data/plugins/guests/debian/cap/change_host_name.rb +1 -0
- data/plugins/guests/gentoo/guest.rb +1 -1
- data/plugins/guests/linux/cap/mount_nfs.rb +9 -1
- data/plugins/guests/linux/cap/mount_virtualbox_shared_folder.rb +26 -7
- data/plugins/guests/linux/cap/shell_expand_guest_path.rb +4 -1
- data/plugins/guests/openbsd/cap/change_host_name.rb +14 -0
- data/plugins/guests/openbsd/cap/configure_networks.rb +40 -0
- data/plugins/guests/openbsd/cap/mount_nfs_folder.rb +14 -0
- data/plugins/guests/openbsd/plugin.rb +15 -0
- data/plugins/guests/solaris/cap/halt.rb +2 -1
- data/plugins/guests/solaris/cap/mount_virtualbox_shared_folder.rb +4 -1
- data/plugins/guests/solaris11/cap/change_host_name.rb +25 -0
- data/plugins/guests/solaris11/cap/configure_networks.rb +32 -0
- data/plugins/guests/solaris11/cap/halt.rb +26 -0
- data/plugins/guests/solaris11/cap/mount_virtualbox_shared_folder.rb +35 -0
- data/plugins/guests/solaris11/config.rb +22 -0
- data/plugins/guests/solaris11/guest.rb +15 -0
- data/plugins/guests/solaris11/plugin.rb +44 -0
- data/plugins/guests/suse/cap/configure_networks.rb +60 -0
- data/plugins/guests/suse/plugin.rb +5 -0
- data/plugins/guests/ubuntu/cap/change_host_name.rb +1 -0
- data/plugins/guests/ubuntu/cap/mount_nfs.rb +19 -0
- data/plugins/guests/ubuntu/cap/mount_virtualbox_shared_folder.rb +14 -0
- data/plugins/guests/ubuntu/guest.rb +0 -19
- data/plugins/guests/ubuntu/plugin.rb +10 -0
- data/plugins/hosts/arch/host.rb +5 -28
- data/plugins/hosts/bsd/host.rb +83 -7
- data/plugins/hosts/fedora/host.rb +12 -6
- data/plugins/hosts/gentoo/host.rb +3 -1
- data/plugins/hosts/linux/host.rb +42 -9
- data/plugins/hosts/opensuse/host.rb +3 -1
- data/plugins/hosts/slackware/host.rb +26 -0
- data/plugins/hosts/slackware/plugin.rb +15 -0
- data/plugins/kernel_v1/config/ssh.rb +2 -2
- data/plugins/kernel_v2/config/ssh.rb +8 -16
- data/plugins/kernel_v2/config/vm.rb +68 -11
- data/plugins/providers/virtualbox/action.rb +15 -2
- data/plugins/providers/virtualbox/action/boot.rb +0 -26
- data/plugins/providers/virtualbox/action/clear_network_interfaces.rb +1 -1
- data/plugins/providers/virtualbox/action/customize.rb +10 -3
- data/plugins/providers/virtualbox/action/destroy_unused_network_interfaces.rb +8 -1
- data/plugins/providers/virtualbox/action/forward_ports.rb +1 -0
- data/plugins/providers/virtualbox/action/import.rb +3 -0
- data/plugins/providers/virtualbox/action/network.rb +14 -2
- data/plugins/providers/virtualbox/action/prepare_nfs_settings.rb +7 -2
- data/plugins/providers/virtualbox/action/set_name.rb +13 -1
- data/plugins/providers/virtualbox/config.rb +39 -2
- data/plugins/providers/virtualbox/driver/base.rb +5 -0
- data/plugins/providers/virtualbox/driver/meta.rb +7 -1
- data/plugins/providers/virtualbox/driver/version_4_0.rb +2 -2
- data/plugins/providers/virtualbox/driver/version_4_1.rb +2 -2
- data/plugins/providers/virtualbox/driver/version_4_2.rb +17 -0
- data/plugins/providers/virtualbox/model/forwarded_port.rb +7 -1
- data/plugins/providers/virtualbox/util/compile_forwarded_ports.rb +5 -1
- data/plugins/provisioners/ansible/config.rb +40 -23
- data/plugins/provisioners/ansible/provisioner.rb +68 -13
- data/plugins/provisioners/cfengine/cap/debian/cfengine_install.rb +1 -1
- data/plugins/provisioners/cfengine/cap/redhat/cfengine_install.rb +1 -1
- data/plugins/provisioners/cfengine/config.rb +7 -1
- data/plugins/provisioners/cfengine/provisioner.rb +4 -5
- data/plugins/provisioners/chef/config/base.rb +31 -0
- data/plugins/provisioners/chef/config/chef_client.rb +15 -6
- data/plugins/provisioners/chef/config/chef_solo.rb +18 -11
- data/plugins/provisioners/chef/provisioner/base.rb +23 -3
- data/plugins/provisioners/chef/provisioner/chef_client.rb +25 -6
- data/plugins/provisioners/chef/provisioner/chef_solo.rb +16 -13
- data/plugins/provisioners/file/config.rb +29 -0
- data/plugins/provisioners/file/plugin.rb +23 -0
- data/plugins/provisioners/file/provisioner.rb +16 -0
- data/plugins/provisioners/puppet/config/puppet.rb +4 -1
- data/plugins/provisioners/puppet/provisioner/puppet.rb +15 -9
- data/plugins/provisioners/puppet/provisioner/puppet_server.rb +9 -2
- data/plugins/provisioners/salt/bootstrap-salt.sh +6 -0
- data/plugins/provisioners/salt/config.rb +105 -0
- data/plugins/provisioners/salt/errors.rb +11 -0
- data/plugins/provisioners/salt/plugin.rb +22 -0
- data/plugins/provisioners/salt/provisioner.rb +249 -0
- data/plugins/provisioners/shell/config.rb +11 -2
- data/plugins/provisioners/shell/provisioner.rb +15 -3
- data/scripts/website_push_docs.sh +12 -0
- data/scripts/website_push_www.sh +12 -0
- data/templates/commands/init/Vagrantfile.erb +5 -2
- data/templates/commands/ssh_config/config.erb +4 -0
- data/templates/guests/coreos/etcd.service.erb +10 -0
- data/templates/guests/fedora/network_static.erb +2 -3
- data/templates/guests/openbsd/network_dhcp.erb +1 -0
- data/templates/guests/openbsd/network_static.erb +1 -0
- data/templates/guests/suse/network_dhcp.erb +6 -0
- data/templates/guests/suse/network_static.erb +10 -0
- data/templates/locales/en.yml +123 -13
- data/templates/nfs/exports.erb +4 -4
- data/templates/nfs/exports_freebsd.erb +4 -4
- data/templates/nfs/exports_linux.erb +5 -3
- data/templates/provisioners/chef_client/client.erb +9 -0
- data/templates/provisioners/chef_solo/solo.erb +19 -1
- data/test/unit/vagrant/action/builtin/graceful_halt_test.rb +1 -2
- data/test/unit/vagrant/cli_test.rb +1 -0
- data/test/unit/vagrant/config/v2/root_test.rb +18 -0
- data/test/unit/vagrant/environment_test.rb +25 -0
- data/test/unit/vagrant/util/downloader_test.rb +4 -4
- data/test/unit/vagrant_test.rb +18 -0
- data/website/docs/.buildpacks +2 -0
- data/website/docs/Gemfile +13 -0
- data/website/docs/Gemfile.lock +141 -0
- data/website/docs/Procfile +1 -0
- data/website/docs/README.md +26 -0
- data/website/docs/config.rb +78 -0
- data/website/docs/config.ru +44 -0
- data/website/docs/helpers/sidebar_helpers.rb +19 -0
- data/website/docs/lib/redirect_to_latest.rb +25 -0
- data/website/docs/lib/redirect_v1_docs.rb +26 -0
- data/website/docs/source/404.html.erb +7 -0
- data/website/docs/source/images/bullet_1.png +0 -0
- data/website/docs/source/images/bullet_2.png +0 -0
- data/website/docs/source/images/bullet_3.png +0 -0
- data/website/docs/source/images/customers.png +0 -0
- data/website/docs/source/images/customers_small.png +0 -0
- data/website/docs/source/images/footer_background.png +0 -0
- data/website/docs/source/images/footer_hashi_logo.png +0 -0
- data/website/docs/source/images/footer_vagrant_logo.png +0 -0
- data/website/docs/source/images/get_started_background.png +0 -0
- data/website/docs/source/images/icon_caution.png +0 -0
- data/website/docs/source/images/logo_docs.png +0 -0
- data/website/docs/source/images/logo_docs_small.png +0 -0
- data/website/docs/source/images/logo_small.png +0 -0
- data/website/docs/source/images/logo_vagrant.png +0 -0
- data/website/docs/source/images/open_close.png +0 -0
- data/website/docs/source/images/search_icon.png +0 -0
- data/website/docs/source/images/sidebar_background_docs.png +0 -0
- data/website/docs/source/images/sidebar_background_inner.png +0 -0
- data/website/docs/source/images/steps_background.png +0 -0
- data/website/docs/source/images/vagrant_header_background.png +0 -0
- data/website/docs/source/index.html.erb +0 -0
- data/website/docs/source/javascripts/backstretch.js +4 -0
- data/website/docs/source/javascripts/bootstrap.min.js +7 -0
- data/website/docs/source/javascripts/fittext.js +43 -0
- data/website/docs/source/javascripts/grid-overlay.js +161 -0
- data/website/docs/source/javascripts/jquery.js +2 -0
- data/website/docs/source/javascripts/less-1.3.0.min.js +9 -0
- data/website/docs/source/javascripts/modernizr.js +1384 -0
- data/website/docs/source/javascripts/vagrantup.js +15 -0
- data/website/docs/source/layouts/layout.erb +266 -0
- data/website/docs/source/stylesheets/_base.less +317 -0
- data/website/docs/source/stylesheets/_components.less +74 -0
- data/website/docs/source/stylesheets/_footer.less +101 -0
- data/website/docs/source/stylesheets/_media-queries.less +452 -0
- data/website/docs/source/stylesheets/_mixins.less +174 -0
- data/website/docs/source/stylesheets/_nav.less +71 -0
- data/website/docs/source/stylesheets/_pages.less +276 -0
- data/website/docs/source/stylesheets/_sidebar.less +136 -0
- data/website/docs/source/stylesheets/_type.less +36 -0
- data/website/docs/source/stylesheets/_variables.less +39 -0
- data/website/docs/source/stylesheets/bootstrap.css +5946 -0
- data/website/docs/source/stylesheets/vagrantup.less +16 -0
- data/website/docs/source/v2/boxes.html.md +78 -0
- data/website/docs/source/v2/boxes/format.html.md +32 -0
- data/website/docs/source/v2/cli/box.html.md +62 -0
- data/website/docs/source/v2/cli/destroy.html.md +20 -0
- data/website/docs/source/v2/cli/halt.html.md +19 -0
- data/website/docs/source/v2/cli/index.html.md +24 -0
- data/website/docs/source/v2/cli/init.html.md +18 -0
- data/website/docs/source/v2/cli/package.html.md +43 -0
- data/website/docs/source/v2/cli/plugin.html.md +56 -0
- data/website/docs/source/v2/cli/provision.html.md +24 -0
- data/website/docs/source/v2/cli/reload.html.md +27 -0
- data/website/docs/source/v2/cli/resume.html.md +11 -0
- data/website/docs/source/v2/cli/ssh.html.md +24 -0
- data/website/docs/source/v2/cli/ssh_config.html.md +16 -0
- data/website/docs/source/v2/cli/status.html.md +14 -0
- data/website/docs/source/v2/cli/suspend.html.md +19 -0
- data/website/docs/source/v2/cli/up.html.md +34 -0
- data/website/docs/source/v2/debugging.html.md +42 -0
- data/website/docs/source/v2/getting-started/boxes.html.md +56 -0
- data/website/docs/source/v2/getting-started/index.html.md +43 -0
- data/website/docs/source/v2/getting-started/networking.html.md +45 -0
- data/website/docs/source/v2/getting-started/project_setup.html.md +38 -0
- data/website/docs/source/v2/getting-started/providers.html.md +37 -0
- data/website/docs/source/v2/getting-started/provisioning.html.md +75 -0
- data/website/docs/source/v2/getting-started/rebuild.html.md +17 -0
- data/website/docs/source/v2/getting-started/synced_folders.html.md +42 -0
- data/website/docs/source/v2/getting-started/teardown.html.md +41 -0
- data/website/docs/source/v2/getting-started/up.html.md +35 -0
- data/website/docs/source/v2/index.html.md +10 -0
- data/website/docs/source/v2/installation/backwards-compatibility.html.md +35 -0
- data/website/docs/source/v2/installation/index.html.md +28 -0
- data/website/docs/source/v2/installation/uninstallation.html.md +39 -0
- data/website/docs/source/v2/installation/upgrading-from-1-0.html.md +26 -0
- data/website/docs/source/v2/installation/upgrading.html.md +20 -0
- data/website/docs/source/v2/multi-machine/index.html.md +105 -0
- data/website/docs/source/v2/networking/basic_usage.html.md +43 -0
- data/website/docs/source/v2/networking/forwarded_ports.html.md +57 -0
- data/website/docs/source/v2/networking/index.html.md +40 -0
- data/website/docs/source/v2/networking/private_network.html.md +48 -0
- data/website/docs/source/v2/networking/public_network.html.md +53 -0
- data/website/docs/source/v2/plugins/commands.html.md +116 -0
- data/website/docs/source/v2/plugins/configuration.html.md +166 -0
- data/website/docs/source/v2/plugins/development-basics.html.md +139 -0
- data/website/docs/source/v2/plugins/guest-capabilities.html.md +100 -0
- data/website/docs/source/v2/plugins/guests.html.md +99 -0
- data/website/docs/source/v2/plugins/hosts.html.md +46 -0
- data/website/docs/source/v2/plugins/index.html.md +21 -0
- data/website/docs/source/v2/plugins/packaging.html.md +102 -0
- data/website/docs/source/v2/plugins/providers.html.md +234 -0
- data/website/docs/source/v2/plugins/provisioners.html.md +64 -0
- data/website/docs/source/v2/plugins/usage.html.md +58 -0
- data/website/docs/source/v2/providers/basic_usage.html.md +67 -0
- data/website/docs/source/v2/providers/configuration.html.md +89 -0
- data/website/docs/source/v2/providers/custom.html.md +9 -0
- data/website/docs/source/v2/providers/default.html.md +22 -0
- data/website/docs/source/v2/providers/index.html.md +23 -0
- data/website/docs/source/v2/providers/installation.html.md +11 -0
- data/website/docs/source/v2/provisioning/ansible.html.md +144 -0
- data/website/docs/source/v2/provisioning/basic_usage.html.md +67 -0
- data/website/docs/source/v2/provisioning/chef_client.html.md +109 -0
- data/website/docs/source/v2/provisioning/chef_solo.html.md +156 -0
- data/website/docs/source/v2/provisioning/index.html.md +28 -0
- data/website/docs/source/v2/provisioning/puppet_agent.html.md +70 -0
- data/website/docs/source/v2/provisioning/puppet_apply.html.md +114 -0
- data/website/docs/source/v2/provisioning/shell.html.md +88 -0
- data/website/docs/source/v2/synced-folders/basic_usage.html.md +53 -0
- data/website/docs/source/v2/synced-folders/index.html.md +17 -0
- data/website/docs/source/v2/synced-folders/nfs.html.md +53 -0
- data/website/docs/source/v2/vagrantfile/index.html.md +75 -0
- data/website/docs/source/v2/vagrantfile/machine_settings.html.md +84 -0
- data/website/docs/source/v2/vagrantfile/ssh_settings.html.md +61 -0
- data/website/docs/source/v2/vagrantfile/vagrant_settings.html.md +19 -0
- data/website/docs/source/v2/vagrantfile/version.html.md +64 -0
- data/website/docs/source/v2/virtualbox/boxes.html.md +71 -0
- data/website/docs/source/v2/virtualbox/configuration.html.md +63 -0
- data/website/docs/source/v2/virtualbox/index.html.md +21 -0
- data/website/docs/source/v2/virtualbox/usage.html.md +12 -0
- data/website/docs/source/v2/vmware/boxes.html.md +107 -0
- data/website/docs/source/v2/vmware/configuration.html.md +91 -0
- data/website/docs/source/v2/vmware/index.html.md +30 -0
- data/website/docs/source/v2/vmware/installation.html.md +40 -0
- data/website/docs/source/v2/vmware/known-issues.html.md +21 -0
- data/website/docs/source/v2/vmware/usage.html.md +27 -0
- data/website/docs/source/v2/why-vagrant/index.html.md +46 -0
- data/website/www/.buildpacks +2 -0
- data/website/www/Gemfile +15 -0
- data/website/www/Gemfile.lock +123 -0
- data/website/www/Procfile +1 -0
- data/website/www/README.md +26 -0
- data/website/www/config.rb +88 -0
- data/website/www/config.ru +39 -0
- data/website/www/helpers/sidebar_helpers.rb +12 -0
- data/website/www/lib/legacy_redirect.rb +32 -0
- data/website/www/source/404.html.erb +11 -0
- data/website/www/source/_sidebar_about.erb +5 -0
- data/website/www/source/_sidebar_blog.erb +11 -0
- data/website/www/source/_sidebar_support.html.erb +6 -0
- data/website/www/source/about.html.markdown +16 -0
- data/website/www/source/blog.html.erb +34 -0
- data/website/www/source/blog/2013-09-16-test.html.markdown +26 -0
- data/website/www/source/blog_feed.xml.builder +23 -0
- data/website/www/source/images/bullet_1.png +0 -0
- data/website/www/source/images/bullet_2.png +0 -0
- data/website/www/source/images/bullet_3.png +0 -0
- data/website/www/source/images/customers.png +0 -0
- data/website/www/source/images/customers_small.png +0 -0
- data/website/www/source/images/footer_background.png +0 -0
- data/website/www/source/images/footer_hashi_logo.png +0 -0
- data/website/www/source/images/footer_vagrant_logo.png +0 -0
- data/website/www/source/images/get_started_background.png +0 -0
- data/website/www/source/images/icon_caution.png +0 -0
- data/website/www/source/images/logo_docs.png +0 -0
- data/website/www/source/images/logo_docs_small.png +0 -0
- data/website/www/source/images/logo_small.png +0 -0
- data/website/www/source/images/logo_vagrant.png +0 -0
- data/website/www/source/images/open_close.png +0 -0
- data/website/www/source/images/search_icon.png +0 -0
- data/website/www/source/images/sidebar_background_docs.png +0 -0
- data/website/www/source/images/sidebar_background_inner.png +0 -0
- data/website/www/source/images/sponsors/fastly.png +0 -0
- data/website/www/source/images/sponsors/kiip.png +0 -0
- data/website/www/source/images/sponsors/softlayer.jpg +0 -0
- data/website/www/source/images/sponsors/typekit.png +0 -0
- data/website/www/source/images/steps_background.png +0 -0
- data/website/www/source/images/vagrant_header_background.png +0 -0
- data/website/www/source/images/vagrant_vmware_background.png +0 -0
- data/website/www/source/index.html.erb +109 -0
- data/website/www/source/javascripts/backstretch.js +4 -0
- data/website/www/source/javascripts/bootstrap.min.js +7 -0
- data/website/www/source/javascripts/fittext.js +43 -0
- data/website/www/source/javascripts/grid-overlay.js +161 -0
- data/website/www/source/javascripts/jquery.js +2 -0
- data/website/www/source/javascripts/less-1.3.0.min.js +9 -0
- data/website/www/source/javascripts/modernizr.js +1384 -0
- data/website/www/source/javascripts/vagrantup.js +58 -0
- data/website/www/source/layouts/blog_post.erb +42 -0
- data/website/www/source/layouts/inner.erb +34 -0
- data/website/www/source/layouts/layout.erb +107 -0
- data/website/www/source/sponsors.html.erb +23 -0
- data/website/www/source/stylesheets/_base.less +326 -0
- data/website/www/source/stylesheets/_components.less +74 -0
- data/website/www/source/stylesheets/_footer.less +101 -0
- data/website/www/source/stylesheets/_media-queries.less +549 -0
- data/website/www/source/stylesheets/_mixins.less +175 -0
- data/website/www/source/stylesheets/_modules.less +37 -0
- data/website/www/source/stylesheets/_nav.less +74 -0
- data/website/www/source/stylesheets/_pages.less +467 -0
- data/website/www/source/stylesheets/_sidebar.less +137 -0
- data/website/www/source/stylesheets/_type.less +36 -0
- data/website/www/source/stylesheets/_variables.less +39 -0
- data/website/www/source/stylesheets/bootstrap.css +5946 -0
- data/website/www/source/stylesheets/vagrantup.less +17 -0
- data/website/www/source/support.html.erb +25 -0
- data/website/www/source/support/community.html.erb +28 -0
- data/website/www/source/support/professional.html.erb +17 -0
- data/website/www/source/vmware/eula.html.md +21 -0
- data/website/www/source/vmware/index.html.erb +185 -0
- data/website/www/source/vmware/privacy-policy.html.md +71 -0
- data/website/www/source/vmware/terms-of-service.html.md +50 -0
- metadata +436 -186
@@ -41,6 +41,24 @@ describe Vagrant::Config::V2::Root do
|
|
41
41
|
}
|
42
42
|
end
|
43
43
|
|
44
|
+
describe "finalization" do
|
45
|
+
it "should finalize un-used keys" do
|
46
|
+
foo_class = Class.new do
|
47
|
+
attr_accessor :foo
|
48
|
+
|
49
|
+
def finalize!
|
50
|
+
@foo = "SET"
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
map = { :foo => foo_class }
|
55
|
+
instance = described_class.new(map)
|
56
|
+
instance.finalize!
|
57
|
+
|
58
|
+
instance.foo.foo.should == "SET"
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
44
62
|
describe "validation" do
|
45
63
|
let(:instance) do
|
46
64
|
map = { :foo => Object, :bar => Object }
|
@@ -581,6 +581,31 @@ VF
|
|
581
581
|
machine.config.ssh.port.should == 100
|
582
582
|
end
|
583
583
|
|
584
|
+
it "should load the box configuration for a V2 box and custom Vagrantfile name" do
|
585
|
+
register_provider("foo")
|
586
|
+
|
587
|
+
environment = isolated_environment do |env|
|
588
|
+
env.file("some_other_name", <<-VF)
|
589
|
+
Vagrant.configure("2") do |config|
|
590
|
+
config.vm.box = "base"
|
591
|
+
end
|
592
|
+
VF
|
593
|
+
|
594
|
+
env.box2("base", :foo, :vagrantfile => <<-VF)
|
595
|
+
Vagrant.configure("2") do |config|
|
596
|
+
config.ssh.port = 100
|
597
|
+
end
|
598
|
+
VF
|
599
|
+
end
|
600
|
+
|
601
|
+
env = with_temp_env("VAGRANT_VAGRANTFILE" => "some_other_name") do
|
602
|
+
environment.create_vagrant_env
|
603
|
+
end
|
604
|
+
|
605
|
+
machine = env.machine(:default, :foo)
|
606
|
+
machine.config.ssh.port.should == 100
|
607
|
+
end
|
608
|
+
|
584
609
|
it "should load the box configuration for other formats for a V2 box" do
|
585
610
|
register_provider("foo", nil, box_format: "bar")
|
586
611
|
|
@@ -21,12 +21,14 @@ describe Vagrant::Util::Downloader do
|
|
21
21
|
end
|
22
22
|
|
23
23
|
describe "#download!" do
|
24
|
+
let(:curl_options) {
|
25
|
+
["--fail", "--location", "--max-redirs", "10", "--user-agent", described_class::USER_AGENT, "--output", destination, source, {}]
|
26
|
+
}
|
27
|
+
|
24
28
|
context "with a good exit status" do
|
25
29
|
let(:exit_code) { 0 }
|
26
30
|
|
27
31
|
it "downloads the file and returns true" do
|
28
|
-
curl_options = ["--fail", "--location", "--max-redirs", "10", "--output", destination, source, {}]
|
29
|
-
|
30
32
|
Vagrant::Util::Subprocess.should_receive(:execute).
|
31
33
|
with("curl", *curl_options).
|
32
34
|
and_return(subprocess_result)
|
@@ -39,8 +41,6 @@ describe Vagrant::Util::Downloader do
|
|
39
41
|
let(:exit_code) { 1 }
|
40
42
|
|
41
43
|
it "raises an exception" do
|
42
|
-
curl_options = ["--fail", "--location", "--max-redirs", "10", "--output", destination, source, {}]
|
43
|
-
|
44
44
|
Vagrant::Util::Subprocess.should_receive(:execute).
|
45
45
|
with("curl", *curl_options).
|
46
46
|
and_return(subprocess_result)
|
data/test/unit/vagrant_test.rb
CHANGED
@@ -53,4 +53,22 @@ describe Vagrant do
|
|
53
53
|
to raise_error(Vagrant::Errors::PluginLoadFailed)
|
54
54
|
end
|
55
55
|
end
|
56
|
+
|
57
|
+
describe "has_plugin?" do
|
58
|
+
after(:each) do
|
59
|
+
described_class.plugin('2').manager.reset!
|
60
|
+
end
|
61
|
+
|
62
|
+
it "should return true if the plugin is installed" do
|
63
|
+
plugin = Class.new(described_class.plugin('2')) do
|
64
|
+
name "i_am_installed"
|
65
|
+
end
|
66
|
+
|
67
|
+
described_class.has_plugin?("i_am_installed").should be_true
|
68
|
+
end
|
69
|
+
|
70
|
+
it "should return false if the plugin is not installed" do
|
71
|
+
described_class.has_plugin?("i_dont_exist").should be_false
|
72
|
+
end
|
73
|
+
end
|
56
74
|
end
|
@@ -0,0 +1,13 @@
|
|
1
|
+
source "https://rubygems.org"
|
2
|
+
|
3
|
+
gem "less", "~> 2.2.2"
|
4
|
+
gem "middleman", "~> 3.0.6"
|
5
|
+
gem "middleman-minify-html", "~> 3.0.0"
|
6
|
+
gem "rack-contrib", "~> 1.1.0"
|
7
|
+
gem "redcarpet", "~> 2.2.2"
|
8
|
+
gem "therubyracer", "~> 0.12.0"
|
9
|
+
gem "thin", "~> 1.5.0"
|
10
|
+
|
11
|
+
group :development do
|
12
|
+
gem "highline", "~> 1.6.15"
|
13
|
+
end
|
@@ -0,0 +1,141 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
POpen4 (0.1.4)
|
5
|
+
Platform (>= 0.4.0)
|
6
|
+
open4
|
7
|
+
Platform (0.4.0)
|
8
|
+
activesupport (3.2.13)
|
9
|
+
i18n (= 0.6.1)
|
10
|
+
multi_json (~> 1.0)
|
11
|
+
chunky_png (1.2.8)
|
12
|
+
coffee-script (2.2.0)
|
13
|
+
coffee-script-source
|
14
|
+
execjs
|
15
|
+
coffee-script-source (1.3.3)
|
16
|
+
commonjs (0.2.7)
|
17
|
+
compass (0.12.2)
|
18
|
+
chunky_png (~> 1.2)
|
19
|
+
fssm (>= 0.2.7)
|
20
|
+
sass (~> 3.1)
|
21
|
+
daemons (1.1.9)
|
22
|
+
eventmachine (1.0.3)
|
23
|
+
execjs (1.4.0)
|
24
|
+
multi_json (~> 1.0)
|
25
|
+
fssm (0.2.10)
|
26
|
+
haml (4.0.3)
|
27
|
+
tilt
|
28
|
+
highline (1.6.19)
|
29
|
+
hike (1.2.3)
|
30
|
+
htmlcompressor (0.0.7)
|
31
|
+
yui-compressor (~> 0.9.6)
|
32
|
+
http_router (0.10.2)
|
33
|
+
rack (>= 1.0.0)
|
34
|
+
url_mount (~> 0.2.1)
|
35
|
+
i18n (0.6.1)
|
36
|
+
less (2.2.2)
|
37
|
+
commonjs (~> 0.2.6)
|
38
|
+
libv8 (3.16.14.3)
|
39
|
+
listen (0.7.3)
|
40
|
+
maruku (0.6.1)
|
41
|
+
syntax (>= 1.0.0)
|
42
|
+
middleman (3.0.14)
|
43
|
+
middleman-core (= 3.0.14)
|
44
|
+
middleman-more (= 3.0.14)
|
45
|
+
middleman-sprockets (~> 3.1.0)
|
46
|
+
middleman-core (3.0.14)
|
47
|
+
activesupport (~> 3.2.6)
|
48
|
+
bundler (~> 1.1)
|
49
|
+
listen (~> 0.7.3)
|
50
|
+
rack (~> 1.4.1)
|
51
|
+
rack-test (~> 0.6.1)
|
52
|
+
rb-fsevent (~> 0.9.3)
|
53
|
+
thor (~> 0.15.4)
|
54
|
+
tilt (~> 1.3.6)
|
55
|
+
middleman-minify-html (3.0.0)
|
56
|
+
htmlcompressor
|
57
|
+
middleman-core (~> 3.0.0)
|
58
|
+
middleman-more (3.0.14)
|
59
|
+
coffee-script (~> 2.2.0)
|
60
|
+
coffee-script-source (~> 1.3.3)
|
61
|
+
compass (>= 0.12.2)
|
62
|
+
execjs (~> 1.4.0)
|
63
|
+
haml (>= 3.1.6)
|
64
|
+
i18n (~> 0.6.0, < 0.6.2)
|
65
|
+
maruku (~> 0.6.0)
|
66
|
+
middleman-core (= 3.0.14)
|
67
|
+
padrino-helpers (= 0.10.7)
|
68
|
+
sass (>= 3.1.20)
|
69
|
+
uglifier (~> 1.2.6)
|
70
|
+
middleman-sprockets (3.1.4)
|
71
|
+
middleman-core (>= 3.0.14)
|
72
|
+
middleman-more (>= 3.0.14)
|
73
|
+
sprockets (~> 2.1)
|
74
|
+
sprockets-helpers (~> 1.0.0)
|
75
|
+
sprockets-sass (~> 1.0.0)
|
76
|
+
multi_json (1.8.0)
|
77
|
+
open4 (1.3.0)
|
78
|
+
padrino-core (0.10.7)
|
79
|
+
activesupport (~> 3.2.0)
|
80
|
+
http_router (~> 0.10.2)
|
81
|
+
sinatra (~> 1.3.1)
|
82
|
+
thor (~> 0.15.2)
|
83
|
+
tilt (~> 1.3.0)
|
84
|
+
padrino-helpers (0.10.7)
|
85
|
+
i18n (~> 0.6)
|
86
|
+
padrino-core (= 0.10.7)
|
87
|
+
rack (1.4.5)
|
88
|
+
rack-contrib (1.1.0)
|
89
|
+
rack (>= 0.9.1)
|
90
|
+
rack-protection (1.5.0)
|
91
|
+
rack
|
92
|
+
rack-test (0.6.2)
|
93
|
+
rack (>= 1.0)
|
94
|
+
rb-fsevent (0.9.3)
|
95
|
+
redcarpet (2.2.2)
|
96
|
+
ref (1.0.5)
|
97
|
+
sass (3.2.10)
|
98
|
+
sinatra (1.3.6)
|
99
|
+
rack (~> 1.4)
|
100
|
+
rack-protection (~> 1.3)
|
101
|
+
tilt (~> 1.3, >= 1.3.3)
|
102
|
+
sprockets (2.10.0)
|
103
|
+
hike (~> 1.2)
|
104
|
+
multi_json (~> 1.0)
|
105
|
+
rack (~> 1.0)
|
106
|
+
tilt (~> 1.1, != 1.3.0)
|
107
|
+
sprockets-helpers (1.0.1)
|
108
|
+
sprockets (~> 2.0)
|
109
|
+
sprockets-sass (1.0.1)
|
110
|
+
sprockets (~> 2.0)
|
111
|
+
tilt (~> 1.1)
|
112
|
+
syntax (1.0.0)
|
113
|
+
therubyracer (0.12.0)
|
114
|
+
libv8 (~> 3.16.14.0)
|
115
|
+
ref
|
116
|
+
thin (1.5.1)
|
117
|
+
daemons (>= 1.0.9)
|
118
|
+
eventmachine (>= 0.12.6)
|
119
|
+
rack (>= 1.0.0)
|
120
|
+
thor (0.15.4)
|
121
|
+
tilt (1.3.7)
|
122
|
+
uglifier (1.2.7)
|
123
|
+
execjs (>= 0.3.0)
|
124
|
+
multi_json (~> 1.3)
|
125
|
+
url_mount (0.2.1)
|
126
|
+
rack
|
127
|
+
yui-compressor (0.9.6)
|
128
|
+
POpen4 (>= 0.1.4)
|
129
|
+
|
130
|
+
PLATFORMS
|
131
|
+
ruby
|
132
|
+
|
133
|
+
DEPENDENCIES
|
134
|
+
highline (~> 1.6.15)
|
135
|
+
less (~> 2.2.2)
|
136
|
+
middleman (~> 3.0.6)
|
137
|
+
middleman-minify-html (~> 3.0.0)
|
138
|
+
rack-contrib (~> 1.1.0)
|
139
|
+
redcarpet (~> 2.2.2)
|
140
|
+
therubyracer (~> 0.12.0)
|
141
|
+
thin (~> 1.5.0)
|
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec thin start -p $PORT
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# Vagrant Documentation
|
2
|
+
|
3
|
+
This is the repository for the [Vagrant Documentation website](http://docs.vagrantup.com).
|
4
|
+
|
5
|
+
This is a [Middleman](http://middlemanapp.com) project, which builds a static
|
6
|
+
site from these source files. The site is hosted on [Heroku](http://heroku.com)
|
7
|
+
and then fronted by [Fastly](http://fastly.com).
|
8
|
+
|
9
|
+
## Contributions Welcome!
|
10
|
+
|
11
|
+
If you find a typo or you feel like you can improve the HTML, CSS, or
|
12
|
+
JavaScript, we welcome contributions. Feel free to open issues or pull
|
13
|
+
requests like any normal GitHub project, and we'll merge it in.
|
14
|
+
|
15
|
+
## Running the Site Locally
|
16
|
+
|
17
|
+
Running the site locally is simple. Clone this repo and run the following
|
18
|
+
commands:
|
19
|
+
|
20
|
+
```
|
21
|
+
$ bundle
|
22
|
+
$ bundle exec middleman server
|
23
|
+
```
|
24
|
+
|
25
|
+
Then open up `localhost:4567`. Note that some URLs you may need to append
|
26
|
+
".html" to make them work (in the navigation and such).
|
@@ -0,0 +1,78 @@
|
|
1
|
+
###
|
2
|
+
# Compass
|
3
|
+
###
|
4
|
+
|
5
|
+
# Susy grids in Compass
|
6
|
+
# First: gem install susy --pre
|
7
|
+
# require 'susy'
|
8
|
+
|
9
|
+
# Change Compass configuration
|
10
|
+
# compass_config do |config|
|
11
|
+
# config.output_style = :compact
|
12
|
+
# end
|
13
|
+
|
14
|
+
###
|
15
|
+
# Page options, layouts, aliases and proxies
|
16
|
+
###
|
17
|
+
|
18
|
+
# Per-page layout changes:
|
19
|
+
#
|
20
|
+
# With no layout
|
21
|
+
# page "/path/to/file.html", :layout => false
|
22
|
+
#
|
23
|
+
# With alternative layout
|
24
|
+
# page "/path/to/file.html", :layout => :otherlayout
|
25
|
+
#
|
26
|
+
# A path which all have the same layout
|
27
|
+
# with_layout :admin do
|
28
|
+
# page "/admin/*"
|
29
|
+
# end
|
30
|
+
|
31
|
+
# Proxy (fake) files
|
32
|
+
# page "/this-page-has-no-template.html", :proxy => "/template-file.html" do
|
33
|
+
# @which_fake_page = "Rendering a fake page with a variable"
|
34
|
+
# end
|
35
|
+
|
36
|
+
###
|
37
|
+
# Helpers
|
38
|
+
###
|
39
|
+
|
40
|
+
# Automatic image dimensions on image_tag helper
|
41
|
+
# activate :automatic_image_sizes
|
42
|
+
|
43
|
+
# Methods defined in the helpers block are available in templates
|
44
|
+
# helpers do
|
45
|
+
# def some_helper
|
46
|
+
# "Helping"
|
47
|
+
# end
|
48
|
+
# end
|
49
|
+
|
50
|
+
set :css_dir, 'stylesheets'
|
51
|
+
set :js_dir, 'javascripts'
|
52
|
+
set :images_dir, 'images'
|
53
|
+
|
54
|
+
# Use the RedCarpet Markdown engine
|
55
|
+
set :markdown_engine, :redcarpet
|
56
|
+
set :markdown, :fenced_code_blocks => true
|
57
|
+
|
58
|
+
# Build-specific configuration
|
59
|
+
configure :build do
|
60
|
+
activate :asset_hash
|
61
|
+
activate :minify_css
|
62
|
+
activate :minify_html
|
63
|
+
activate :minify_javascript
|
64
|
+
|
65
|
+
# Enable cache buster
|
66
|
+
# activate :cache_buster
|
67
|
+
|
68
|
+
# Use relative URLs
|
69
|
+
# activate :relative_assets
|
70
|
+
|
71
|
+
# Compress PNGs after build
|
72
|
+
# First: gem install middleman-smusher
|
73
|
+
# require "middleman-smusher"
|
74
|
+
# activate :smusher
|
75
|
+
|
76
|
+
# Or use a different image path
|
77
|
+
# set :http_path, "/Content/images/"
|
78
|
+
end
|
@@ -0,0 +1,44 @@
|
|
1
|
+
require "rack"
|
2
|
+
require "rack/auth/basic"
|
3
|
+
require "rack/contrib/not_found"
|
4
|
+
require "rack/contrib/response_headers"
|
5
|
+
require "rack/contrib/static_cache"
|
6
|
+
require "rack/contrib/try_static"
|
7
|
+
|
8
|
+
require File.expand_path("../lib/redirect_to_latest", __FILE__)
|
9
|
+
require File.expand_path("../lib/redirect_v1_docs", __FILE__)
|
10
|
+
|
11
|
+
# Properly compress the output if the client can handle it.
|
12
|
+
use Rack::Deflater
|
13
|
+
|
14
|
+
# Redirect the homepage to the latest documentation
|
15
|
+
use HashiCorp::Rack::RedirectToLatest
|
16
|
+
|
17
|
+
# Redirect the V1 documentation to the GitHub pages hosted version
|
18
|
+
use HashiCorp::Rack::RedirectV1Docs
|
19
|
+
|
20
|
+
# Set the "forever expire" cache headers for these static assets. Since
|
21
|
+
# we hash the contents of the assets to determine filenames, this is safe
|
22
|
+
# to do.
|
23
|
+
use Rack::StaticCache,
|
24
|
+
:root => "build",
|
25
|
+
:urls => ["/images", "/javascripts", "/stylesheets"],
|
26
|
+
:duration => 2,
|
27
|
+
:versioning => false
|
28
|
+
|
29
|
+
# For anything that matches below this point, we set the surrogate key
|
30
|
+
# for Fastly so that we can quickly purge all the pages without touching
|
31
|
+
# the static assets.
|
32
|
+
use Rack::ResponseHeaders do |headers|
|
33
|
+
headers["Surrogate-Key"] = "page"
|
34
|
+
end
|
35
|
+
|
36
|
+
# Try to find a static file that matches our request, since Middleman
|
37
|
+
# statically generates everything.
|
38
|
+
use Rack::TryStatic,
|
39
|
+
:root => "build",
|
40
|
+
:urls => ["/"],
|
41
|
+
:try => [".html", "index.html", "/index.html"]
|
42
|
+
|
43
|
+
# 404 if we reached this point. Sad times.
|
44
|
+
run Rack::NotFound.new(File.expand_path("../build/404.html", __FILE__))
|
@@ -0,0 +1,19 @@
|
|
1
|
+
module SidebarHelpers
|
2
|
+
# This helps by setting the "current" class for sidebar nav elements
|
3
|
+
# if the YAML frontmatter matches the expected value.
|
4
|
+
def sidebar_current(expected)
|
5
|
+
current = current_page.data.sidebar_current
|
6
|
+
if current == expected || sidebar_section == expected
|
7
|
+
return " class=\"current\""
|
8
|
+
else
|
9
|
+
return ""
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
# This returns the overall section of the documentation we're on.
|
14
|
+
def sidebar_section
|
15
|
+
current = current_page.data.sidebar_current
|
16
|
+
return "" if !current
|
17
|
+
current.split("-")[0]
|
18
|
+
end
|
19
|
+
end
|