2013-11-23 18:49:51 +00:00
|
|
|
require "vagrant"
|
|
|
|
|
|
|
|
module VagrantPlugins
|
|
|
|
module SyncedFolderNFS
|
|
|
|
class Config < Vagrant.plugin("2", :config)
|
2014-04-22 03:37:14 +00:00
|
|
|
attr_accessor :functional
|
2013-11-23 18:49:51 +00:00
|
|
|
attr_accessor :map_uid
|
|
|
|
attr_accessor :map_gid
|
|
|
|
|
|
|
|
def initialize
|
|
|
|
super
|
|
|
|
|
2014-04-22 03:37:14 +00:00
|
|
|
@functional = UNSET_VALUE
|
|
|
|
@map_uid = UNSET_VALUE
|
|
|
|
@map_gid = UNSET_VALUE
|
2013-11-23 18:49:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def finalize!
|
2014-04-22 03:37:14 +00:00
|
|
|
@functional = true if @functional == UNSET_VALUE
|
2014-02-05 23:35:37 +00:00
|
|
|
@map_uid = :auto if @map_uid == UNSET_VALUE
|
|
|
|
@map_gid = :auto if @map_gid == UNSET_VALUE
|
2013-11-23 18:49:51 +00:00
|
|
|
end
|
|
|
|
|
|
|
|
def to_s
|
|
|
|
"NFS"
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|