hosts/windows: convert

This commit is contained in:
Mitchell Hashimoto 2014-01-07 21:13:21 -08:00
parent 4d47dae5b9
commit a72e7473d5
3 changed files with 19 additions and 7 deletions

View File

@ -0,0 +1,11 @@
module VagrantPlugins
module HostWindows
module Cap
class NFS
def self.nfs_installed(env)
false
end
end
end
end
end

View File

@ -1,17 +1,13 @@
require "vagrant"
require 'vagrant/util/platform'
module VagrantPlugins
module HostWindows
class Host < Vagrant.plugin("2", :host)
def self.match?
def self.detect?(env)
Vagrant::Util::Platform.windows?
end
# Windows does not support NFS
def nfs?
false
end
end
end
end

View File

@ -7,9 +7,14 @@ module VagrantPlugins
description "Windows host support."
host("windows") do
require File.expand_path("../host", __FILE__)
require_relative "host"
Host
end
host_capability("windows", "nfs_installed") do
require_relative "cap/nfs"
Cap::NFS
end
end
end
end