hosts/windows: convert
This commit is contained in:
parent
4d47dae5b9
commit
a72e7473d5
|
@ -0,0 +1,11 @@
|
||||||
|
module VagrantPlugins
|
||||||
|
module HostWindows
|
||||||
|
module Cap
|
||||||
|
class NFS
|
||||||
|
def self.nfs_installed(env)
|
||||||
|
false
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
|
@ -1,17 +1,13 @@
|
||||||
require "vagrant"
|
require "vagrant"
|
||||||
|
|
||||||
require 'vagrant/util/platform'
|
require 'vagrant/util/platform'
|
||||||
|
|
||||||
module VagrantPlugins
|
module VagrantPlugins
|
||||||
module HostWindows
|
module HostWindows
|
||||||
class Host < Vagrant.plugin("2", :host)
|
class Host < Vagrant.plugin("2", :host)
|
||||||
def self.match?
|
def self.detect?(env)
|
||||||
Vagrant::Util::Platform.windows?
|
Vagrant::Util::Platform.windows?
|
||||||
end
|
end
|
||||||
|
|
||||||
# Windows does not support NFS
|
|
||||||
def nfs?
|
|
||||||
false
|
|
||||||
end
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -7,9 +7,14 @@ module VagrantPlugins
|
||||||
description "Windows host support."
|
description "Windows host support."
|
||||||
|
|
||||||
host("windows") do
|
host("windows") do
|
||||||
require File.expand_path("../host", __FILE__)
|
require_relative "host"
|
||||||
Host
|
Host
|
||||||
end
|
end
|
||||||
|
|
||||||
|
host_capability("windows", "nfs_installed") do
|
||||||
|
require_relative "cap/nfs"
|
||||||
|
Cap::NFS
|
||||||
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue