From 6b17783688e69634435b75fe9c4a92244b76459a Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Thu, 27 Feb 2014 08:11:50 -0800 Subject: [PATCH] synced_folders/nfs: unavailable on Windows --- lib/vagrant/action/builtin/mixin_synced_folders.rb | 2 +- plugins/synced_folders/nfs/synced_folder.rb | 5 +++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/vagrant/action/builtin/mixin_synced_folders.rb b/lib/vagrant/action/builtin/mixin_synced_folders.rb index dbe76cd20..ea2fd3f8a 100644 --- a/lib/vagrant/action/builtin/mixin_synced_folders.rb +++ b/lib/vagrant/action/builtin/mixin_synced_folders.rb @@ -19,7 +19,7 @@ module Vagrant ordered << [priority, key, impl] end - # Order the plugins by priority + # Order the plugins by priority. Higher is tries before lower. ordered = ordered.sort { |a, b| b[0] <=> a[0] } # Find the proper implementation diff --git a/plugins/synced_folders/nfs/synced_folder.rb b/plugins/synced_folders/nfs/synced_folder.rb index d0757ddec..c1522a78a 100644 --- a/plugins/synced_folders/nfs/synced_folder.rb +++ b/plugins/synced_folders/nfs/synced_folder.rb @@ -25,6 +25,11 @@ module VagrantPlugins end def usable?(machine, raise_error=false) + # We don't currently support NFS on Windows + if Vagrant::Util::Platform.windows? + return false + end + # NFS is always available true end