synced_folders/nfs: config goes here
This commit is contained in:
parent
ab70dc271b
commit
0425d1712b
|
@ -1,14 +0,0 @@
|
|||
require "vagrant"
|
||||
|
||||
module VagrantPlugins
|
||||
module Kernel_V2
|
||||
class NFSConfig < Vagrant.plugin("2", :config)
|
||||
attr_accessor :map_uid
|
||||
attr_accessor :map_gid
|
||||
|
||||
def to_s
|
||||
"NFS"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -20,11 +20,6 @@ module VagrantPlugins
|
|||
SSHConfig
|
||||
end
|
||||
|
||||
config("nfs") do
|
||||
require File.expand_path("../config/nfs", __FILE__)
|
||||
NFSConfig
|
||||
end
|
||||
|
||||
config("package") do
|
||||
require File.expand_path("../config/package", __FILE__)
|
||||
PackageConfig
|
||||
|
|
|
@ -0,0 +1,26 @@
|
|||
require "vagrant"
|
||||
|
||||
module VagrantPlugins
|
||||
module SyncedFolderNFS
|
||||
class Config < Vagrant.plugin("2", :config)
|
||||
attr_accessor :map_uid
|
||||
attr_accessor :map_gid
|
||||
|
||||
def initialize
|
||||
super
|
||||
|
||||
@map_uid = UNSET_VALUE
|
||||
@map_gid = UNSET_VALUE
|
||||
end
|
||||
|
||||
def finalize!
|
||||
@map_uid = nil if @map_uid == UNSET_VALUE
|
||||
@map_gid = nil if @map_gid == UNSET_VALUE
|
||||
end
|
||||
|
||||
def to_s
|
||||
"NFS"
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
|
@ -9,7 +9,12 @@ module VagrantPlugins
|
|||
implementation.
|
||||
EOF
|
||||
|
||||
synced_folder(:nfs, 5) do
|
||||
config("nfs") do
|
||||
require File.expand_path("../config", __FILE__)
|
||||
Config
|
||||
end
|
||||
|
||||
synced_folder("nfs", 5) do
|
||||
require File.expand_path("../synced_folder", __FILE__)
|
||||
SyncedFolder
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue