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
@@ -0,0 +1,91 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Configuration- VMware Provider"
|
3
|
+
sidebar_current: "vmware-configuration"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Configuration
|
7
|
+
|
8
|
+
While VMware providers are a drop-in replacement for VirtualBox, there are
|
9
|
+
some additional features that are exposed that allow you to more finely
|
10
|
+
configure VMware-specific aspects of your machines.
|
11
|
+
|
12
|
+
## "VMware Fusion.app" Location
|
13
|
+
|
14
|
+
The provider by default looks for VMware Fusion in "/Applications" and
|
15
|
+
"~/Applications." If you put your applications in some other place, you'll
|
16
|
+
have to manually tell Vagrant where VMware Fusion is.
|
17
|
+
|
18
|
+
This can be done with the `VAGRANT_VMWARE_FUSION_APP` environmental variable.
|
19
|
+
|
20
|
+
For example, if you put your applications in an "/Apps" directory, you
|
21
|
+
would configure Vagrant like this:
|
22
|
+
|
23
|
+
```
|
24
|
+
$ export VAGRANT_VMWARE_FUSION_APP="/Apps/VMware Fusion.app"
|
25
|
+
$ vagrant up --provider=vmware_fusion
|
26
|
+
```
|
27
|
+
|
28
|
+
## VM Clone Directory
|
29
|
+
|
30
|
+
By default, the VMware provider will clone the VMware VM in the box
|
31
|
+
to the ".vagrant" folder relative to the folder where the Vagrantfile is.
|
32
|
+
Usually, this is fine. For some people, for example those who use a
|
33
|
+
differential backup software such as Time Machine, this is very annoying
|
34
|
+
because you can't regularly ignore giant virtual machines as part of backups.
|
35
|
+
|
36
|
+
The directory where the provider clones the virtual machine can be
|
37
|
+
customized by setting the `VAGRANT_VMWARE_CLONE_DIRECTORY` environmental
|
38
|
+
variable. This doesn't need to be unique per project. Each project will
|
39
|
+
get a different sub-directory within this folder. Therefore, it is safe to
|
40
|
+
set this systemwide.
|
41
|
+
|
42
|
+
## Virtual Machine GUI
|
43
|
+
|
44
|
+
The VMware provider generally starts the virtual machines
|
45
|
+
in headless mode. If you'd like to see the UI because you're running
|
46
|
+
a desktop within the VM, or if you need to debug potential boot issues
|
47
|
+
with the VM, you can configure the VMware provider to boot with the
|
48
|
+
GUI:
|
49
|
+
|
50
|
+
```ruby
|
51
|
+
config.vm.provider "vmware_fusion" do |v|
|
52
|
+
v.gui = true
|
53
|
+
end
|
54
|
+
```
|
55
|
+
|
56
|
+
Use "vmware_workstation" if you're using VMware workstation.
|
57
|
+
|
58
|
+
## VMX Customization
|
59
|
+
|
60
|
+
If you want to add or remove specific keys from the VMX file, you can do
|
61
|
+
that:
|
62
|
+
|
63
|
+
```ruby
|
64
|
+
config.vm.provider "vmware_fusion" do |v|
|
65
|
+
v.vmx["custom-key"] = "value"
|
66
|
+
v.vmx["another-key"] = nil
|
67
|
+
end
|
68
|
+
```
|
69
|
+
|
70
|
+
Use "vmware_workstation" if you're using VMware workstation.
|
71
|
+
|
72
|
+
In the example above, the "custom-key" key will be set to "value" and the
|
73
|
+
"another-key" key will be removed from the VMX file.
|
74
|
+
|
75
|
+
VMX customization is done as the final step before the VMware machine is
|
76
|
+
booted, so you have the ability to possibly undo or misconfigure things
|
77
|
+
that Vagrant has set up itself.
|
78
|
+
|
79
|
+
VMX is an undocumented format and there is no official reference for
|
80
|
+
the available keys and values. This customization option is exposed for
|
81
|
+
people who have knowledge of exactly what they want.
|
82
|
+
|
83
|
+
The most common keys people look for are setting memory and CPUs.
|
84
|
+
The example below sets both:
|
85
|
+
|
86
|
+
```ruby
|
87
|
+
config.vm.provider "vmware_fusion" do |v|
|
88
|
+
v.vmx["memsize"] = "1024"
|
89
|
+
v.vmx["numvcpus"] = "2"
|
90
|
+
end
|
91
|
+
```
|
@@ -0,0 +1,30 @@
|
|
1
|
+
---
|
2
|
+
page_title: "VMware Provider"
|
3
|
+
sidebar_current: "vmware"
|
4
|
+
---
|
5
|
+
|
6
|
+
# VMware
|
7
|
+
|
8
|
+
[HashiCorp](http://www.hashicorp.com) develops an official
|
9
|
+
[VMware Fusion](http://www.vmware.com/products/fusion/overview.html)
|
10
|
+
and [VMware Workstation](http://www.vmware.com/products/workstation/)
|
11
|
+
[provider](/v2/providers/index.html) for Vagrant. This provider allows
|
12
|
+
Vagrant to power VMware based machines and take advantage of the
|
13
|
+
improved stability and performance that VMware software offers.
|
14
|
+
|
15
|
+
Learn more about the VMware providers on the
|
16
|
+
[VMware provider](http://www.vagrantup.com/vmware) page on
|
17
|
+
the Vagrant website.
|
18
|
+
|
19
|
+
This provider is a drop-in replacement for VirtualBox, meaning that every
|
20
|
+
VirtualBox feature that Vagrant supports is fully functional in VMware as
|
21
|
+
well. However, there are some VMware-specific things such as box formats,
|
22
|
+
configurations, etc. that are documented here.
|
23
|
+
|
24
|
+
The VMware provider is currently compatible only with Fusion 5 or Workstation 9.
|
25
|
+
Fusion and Workstation must be purchased and installed separately prior to using the
|
26
|
+
provider. If the proper VMware software isn't properly installed, or an invalid version is
|
27
|
+
installed, the provider will give you a human-friendly error message.
|
28
|
+
|
29
|
+
Use the navigation to the left to find a specific VMware topic to read
|
30
|
+
more about.
|
@@ -0,0 +1,40 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Installation - VMware Provider"
|
3
|
+
sidebar_current: "vmware-installation"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Installation
|
7
|
+
|
8
|
+
The VMware provider is installed using
|
9
|
+
[standard plugin installation procedures](/v2/plugins/usage.html).
|
10
|
+
In addition to installing the plugin, a license must be provided so that
|
11
|
+
it can be loaded properly.
|
12
|
+
|
13
|
+
To purchase a license, visit the [Vagrant VMware provider](http://www.vagrantup.com/vmware)
|
14
|
+
page. After purchasing a license, a link to download it will be emailed
|
15
|
+
to you. Download this file.
|
16
|
+
|
17
|
+
Installing the plugin and license is easy using the `vagrant plugin`
|
18
|
+
interface. Both steps are shown below. Note that the plugin name is different
|
19
|
+
depending on the provider you're using. If you're using the Fusion provider,
|
20
|
+
it is `vagrant-vmware-fusion`. If you're using the Workstation provider,
|
21
|
+
it is `vagrant-vmware-workstation`.
|
22
|
+
|
23
|
+
```
|
24
|
+
$ vagrant plugin install vagrant-vmware-fusion
|
25
|
+
...
|
26
|
+
$ vagrant plugin license vagrant-vmware-fusion license.lic
|
27
|
+
...
|
28
|
+
```
|
29
|
+
|
30
|
+
For licensing, the first parameter is the name of the plugin, which is
|
31
|
+
`vagrant-vmware-fusion` for the VMware Fusion provider, or `vagrant-vmware-workstation`
|
32
|
+
for the VMware Workstation provider. The second parameter is the path to the license itself.
|
33
|
+
|
34
|
+
You can verify the license is properly installed by running any
|
35
|
+
Vagrant command, such as `vagrant plugin list`. The VMware
|
36
|
+
provider will show an error message if you are missing a license or using an
|
37
|
+
invalid license.
|
38
|
+
|
39
|
+
If there are problems installing the plugin, please contact
|
40
|
+
[support](http://www.vagrantup.com/support.html).
|
@@ -0,0 +1,21 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Known Issues - VMware Provider"
|
3
|
+
sidebar_current: "vmware-known-issues"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Known Issues
|
7
|
+
|
8
|
+
This page tracks some known issues or limitations of the VMware providers.
|
9
|
+
Note that none of these are generally blockers to using the provider, but
|
10
|
+
are good to know.
|
11
|
+
|
12
|
+
## Forwarded Ports Failing in Workstation on Windows
|
13
|
+
|
14
|
+
VMware Workstation has a bug on Windows where forwarded ports don't work
|
15
|
+
properly. Vagrant actually works around this bug and makes them work. However,
|
16
|
+
if you run the virtual network editor on Windows, the forwarded ports will
|
17
|
+
suddenly stop working.
|
18
|
+
|
19
|
+
In this case, run `vagrant reload` and things will begin working again.
|
20
|
+
|
21
|
+
This issue has been reported to VMware, but a fix hasn't been released yet.
|
@@ -0,0 +1,27 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Usage - VMware Provider"
|
3
|
+
sidebar_current: "vmware-usage"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Usage
|
7
|
+
|
8
|
+
The VMware providers are used just like any other provider. Please
|
9
|
+
read the general [basic usage](/v2/providers/basic_usage.html) page for
|
10
|
+
providers.
|
11
|
+
|
12
|
+
The value to use for the `--provider` flag is `vmware_fusion` for VMware
|
13
|
+
Fusion, and `vmware_workstation` for VMware Workstation.
|
14
|
+
|
15
|
+
<p>
|
16
|
+
To get started, a 64-bit Ubuntu 12.04 LTS VMware box is available at:
|
17
|
+
<a href="http://files.vagrantup.com/precise64_vmware.box">http://files.vagrantup.com/precise64_vmware.box</a>
|
18
|
+
</p>
|
19
|
+
|
20
|
+
<div class="alert alert-info">
|
21
|
+
<p>
|
22
|
+
<strong>Note:</strong> At some point in the future, the providers
|
23
|
+
will probably be merged into a single `vagrant-vmware` plugin. For now,
|
24
|
+
the Workstation and Fusion codebases are different enough that they
|
25
|
+
are separate plugins.
|
26
|
+
</p>
|
27
|
+
</div>
|
@@ -0,0 +1,46 @@
|
|
1
|
+
---
|
2
|
+
page_title: "Why Vagrant?"
|
3
|
+
sidebar_current: "why"
|
4
|
+
---
|
5
|
+
|
6
|
+
# Why Vagrant?
|
7
|
+
|
8
|
+
Vagrant provides easy to configure, reproducible, and portable work environments
|
9
|
+
built on top of industry-standard technology and
|
10
|
+
controlled by a single consistent workflow to help maximize the productivity
|
11
|
+
and flexibility of you and your team.
|
12
|
+
|
13
|
+
To achieve its magic, Vagrant stands on the shoulders of giants. Machines
|
14
|
+
are provisioned on top of VirtualBox, VMware, AWS, or
|
15
|
+
[any other provider](/v2/providers/index.html). Then, industry-standard
|
16
|
+
[provisioning tools](/v2/provisioning/index.html)
|
17
|
+
such as shell scripts, Chef, or Puppet, can be used to automatically install
|
18
|
+
and configure software on the machine.
|
19
|
+
|
20
|
+
## How Vagrant Benefits You
|
21
|
+
|
22
|
+
If you're a **developer**, Vagrant will isolate dependencies and their
|
23
|
+
configuration within a single disposable, consistent environment, without
|
24
|
+
sacrificing any of the tools you're used to working with (editors, browsers,
|
25
|
+
debuggers, etc.). Once you or someone else creates a single [Vagrantfile](/v2/vagrantfile/index.html), you just need to `vagrant up` and everything is installed and
|
26
|
+
configured for you to work. Other members of your team create their
|
27
|
+
development environments from the same configuration, so whether you're working
|
28
|
+
on Linux, Mac OS X, or Windows, all your team members are running code in
|
29
|
+
the same environment, against the same dependencies, all configured the same way.
|
30
|
+
Say goodbye to "works on my machine" bugs.
|
31
|
+
|
32
|
+
If you're an **operations engineer**, Vagrant gives you a disposable environment
|
33
|
+
and consistent workflow for developing and testing infrastructure management
|
34
|
+
scripts. You can quickly test things like shell scripts, Chef cookbooks,
|
35
|
+
Puppet modules, and more using local virtualization such as VirtualBox or
|
36
|
+
VMware. Then, with the _same configuration_, you can test these scripts
|
37
|
+
on remote clouds such as AWS or RackSpace with the _same workflow_. Ditch
|
38
|
+
your custom scripts to recycle EC2 instances, stop juggling SSH prompts
|
39
|
+
to various machines, and start using Vagrant to bring sanity to your life.
|
40
|
+
|
41
|
+
If you're a **designer**, Vagrant will automatically setup everything required
|
42
|
+
for that web app in order for you to focus on doing what you do best:
|
43
|
+
design. Once a developer configures Vagrant, you don't need to worry about
|
44
|
+
how to get that app running ever again. No more bothering other developers
|
45
|
+
to help you fix your environment so you can test designs. Just check out the
|
46
|
+
code, `vagrant up`, and start designing.
|
data/website/www/Gemfile
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
source 'https://rubygems.org'
|
2
|
+
|
3
|
+
gem "less", "~> 2.2.2"
|
4
|
+
gem "middleman", "~> 3.1.5"
|
5
|
+
gem "middleman-blog", "~> 3.3.0"
|
6
|
+
gem "middleman-minify-html", "~> 3.1.1"
|
7
|
+
gem "nokogiri", "~> 1.6.0"
|
8
|
+
gem "rack-contrib", "~> 1.1.0"
|
9
|
+
gem "redcarpet", "~> 3.0.0"
|
10
|
+
gem "therubyracer", "~> 0.12.0"
|
11
|
+
gem "thin", "~> 1.5.0"
|
12
|
+
|
13
|
+
group :development do
|
14
|
+
gem "highline", "~> 1.6.15"
|
15
|
+
end
|
@@ -0,0 +1,123 @@
|
|
1
|
+
GEM
|
2
|
+
remote: https://rubygems.org/
|
3
|
+
specs:
|
4
|
+
activesupport (3.2.14)
|
5
|
+
i18n (~> 0.6, >= 0.6.4)
|
6
|
+
multi_json (~> 1.0)
|
7
|
+
chunky_png (1.2.8)
|
8
|
+
coffee-script (2.2.0)
|
9
|
+
coffee-script-source
|
10
|
+
execjs
|
11
|
+
coffee-script-source (1.6.3)
|
12
|
+
commonjs (0.2.7)
|
13
|
+
compass (0.12.2)
|
14
|
+
chunky_png (~> 1.2)
|
15
|
+
fssm (>= 0.2.7)
|
16
|
+
sass (~> 3.1)
|
17
|
+
daemons (1.1.9)
|
18
|
+
eventmachine (1.0.3)
|
19
|
+
execjs (1.4.0)
|
20
|
+
multi_json (~> 1.0)
|
21
|
+
ffi (1.9.0)
|
22
|
+
fssm (0.2.10)
|
23
|
+
haml (4.0.3)
|
24
|
+
tilt
|
25
|
+
highline (1.6.19)
|
26
|
+
hike (1.2.3)
|
27
|
+
i18n (0.6.5)
|
28
|
+
kramdown (1.1.0)
|
29
|
+
less (2.2.2)
|
30
|
+
commonjs (~> 0.2.6)
|
31
|
+
libv8 (3.16.14.3)
|
32
|
+
listen (1.2.3)
|
33
|
+
rb-fsevent (>= 0.9.3)
|
34
|
+
rb-inotify (>= 0.9)
|
35
|
+
rb-kqueue (>= 0.2)
|
36
|
+
middleman (3.1.5)
|
37
|
+
coffee-script (~> 2.2.0)
|
38
|
+
compass (>= 0.12.2)
|
39
|
+
execjs (~> 1.4.0)
|
40
|
+
haml (>= 3.1.6)
|
41
|
+
kramdown (~> 1.1.0)
|
42
|
+
middleman-core (= 3.1.5)
|
43
|
+
middleman-more (= 3.1.5)
|
44
|
+
middleman-sprockets (>= 3.1.2)
|
45
|
+
sass (>= 3.1.20)
|
46
|
+
uglifier (~> 2.1.0)
|
47
|
+
middleman-blog (3.3.0)
|
48
|
+
middleman-core (~> 3.0)
|
49
|
+
middleman-more (~> 3.0)
|
50
|
+
tzinfo (~> 0.3.0)
|
51
|
+
middleman-core (3.1.5)
|
52
|
+
activesupport (~> 3.2.6)
|
53
|
+
bundler (~> 1.1)
|
54
|
+
i18n (~> 0.6.1)
|
55
|
+
listen (~> 1.2.2)
|
56
|
+
rack (>= 1.4.5)
|
57
|
+
rack-test (~> 0.6.1)
|
58
|
+
thor (>= 0.15.2, < 2.0)
|
59
|
+
tilt (~> 1.3.6)
|
60
|
+
middleman-minify-html (3.1.1)
|
61
|
+
middleman-core (~> 3.0)
|
62
|
+
middleman-more (3.1.5)
|
63
|
+
middleman-sprockets (3.1.4)
|
64
|
+
middleman-core (>= 3.0.14)
|
65
|
+
middleman-more (>= 3.0.14)
|
66
|
+
sprockets (~> 2.1)
|
67
|
+
sprockets-helpers (~> 1.0.0)
|
68
|
+
sprockets-sass (~> 1.0.0)
|
69
|
+
mini_portile (0.5.1)
|
70
|
+
multi_json (1.8.0)
|
71
|
+
nokogiri (1.6.0)
|
72
|
+
mini_portile (~> 0.5.0)
|
73
|
+
rack (1.5.2)
|
74
|
+
rack-contrib (1.1.0)
|
75
|
+
rack (>= 0.9.1)
|
76
|
+
rack-test (0.6.2)
|
77
|
+
rack (>= 1.0)
|
78
|
+
rb-fsevent (0.9.3)
|
79
|
+
rb-inotify (0.9.2)
|
80
|
+
ffi (>= 0.5.0)
|
81
|
+
rb-kqueue (0.2.0)
|
82
|
+
ffi (>= 0.5.0)
|
83
|
+
redcarpet (3.0.0)
|
84
|
+
ref (1.0.5)
|
85
|
+
sass (3.2.10)
|
86
|
+
sprockets (2.10.0)
|
87
|
+
hike (~> 1.2)
|
88
|
+
multi_json (~> 1.0)
|
89
|
+
rack (~> 1.0)
|
90
|
+
tilt (~> 1.1, != 1.3.0)
|
91
|
+
sprockets-helpers (1.0.1)
|
92
|
+
sprockets (~> 2.0)
|
93
|
+
sprockets-sass (1.0.1)
|
94
|
+
sprockets (~> 2.0)
|
95
|
+
tilt (~> 1.1)
|
96
|
+
therubyracer (0.12.0)
|
97
|
+
libv8 (~> 3.16.14.0)
|
98
|
+
ref
|
99
|
+
thin (1.5.1)
|
100
|
+
daemons (>= 1.0.9)
|
101
|
+
eventmachine (>= 0.12.6)
|
102
|
+
rack (>= 1.0.0)
|
103
|
+
thor (0.18.1)
|
104
|
+
tilt (1.3.7)
|
105
|
+
tzinfo (0.3.37)
|
106
|
+
uglifier (2.1.2)
|
107
|
+
execjs (>= 0.3.0)
|
108
|
+
multi_json (~> 1.0, >= 1.0.2)
|
109
|
+
|
110
|
+
PLATFORMS
|
111
|
+
ruby
|
112
|
+
|
113
|
+
DEPENDENCIES
|
114
|
+
highline (~> 1.6.15)
|
115
|
+
less (~> 2.2.2)
|
116
|
+
middleman (~> 3.1.5)
|
117
|
+
middleman-blog (~> 3.3.0)
|
118
|
+
middleman-minify-html (~> 3.1.1)
|
119
|
+
nokogiri (~> 1.6.0)
|
120
|
+
rack-contrib (~> 1.1.0)
|
121
|
+
redcarpet (~> 3.0.0)
|
122
|
+
therubyracer (~> 0.12.0)
|
123
|
+
thin (~> 1.5.0)
|
@@ -0,0 +1 @@
|
|
1
|
+
web: bundle exec thin start -p $PORT
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# VagrantUp.com
|
2
|
+
|
3
|
+
This is the repository for the [Vagrant website](http://www.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,88 @@
|
|
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
|
+
# Enable the blog and set the time zone so that post times appear
|
59
|
+
# correctly.
|
60
|
+
Time.zone = "America/Los_Angeles"
|
61
|
+
|
62
|
+
activate :blog do |b|
|
63
|
+
b.layout = "blog_post"
|
64
|
+
b.permalink = ":title.html"
|
65
|
+
b.prefix = "blog"
|
66
|
+
end
|
67
|
+
|
68
|
+
# Build-specific configuration
|
69
|
+
configure :build do
|
70
|
+
activate :asset_hash
|
71
|
+
activate :minify_css
|
72
|
+
activate :minify_html
|
73
|
+
activate :minify_javascript
|
74
|
+
|
75
|
+
# Enable cache buster
|
76
|
+
# activate :cache_buster
|
77
|
+
|
78
|
+
# Use relative URLs
|
79
|
+
# activate :relative_assets
|
80
|
+
|
81
|
+
# Compress PNGs after build
|
82
|
+
# First: gem install middleman-smusher
|
83
|
+
# require "middleman-smusher"
|
84
|
+
# activate :smusher
|
85
|
+
|
86
|
+
# Or use a different image path
|
87
|
+
# set :http_path, "/Content/images/"
|
88
|
+
end
|