synced_folders/nfs: config goes here

This commit is contained in:
Mitchell Hashimoto 2013-11-23 10:49:51 -08:00
parent ab70dc271b
commit 0425d1712b
4 changed files with 32 additions and 20 deletions

View File

@ -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

View File

@ -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

View File

@ -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

View File

@ -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