Class: VagrantPlugins::SyncedFolderNFSGuest::Config

Inherits:
Object
  • Object
show all
Defined in:
lib/vagrant-nfs_guest/config.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeConfig

Returns a new instance of Config.



11
12
13
14
15
16
17
18
# File 'lib/vagrant-nfs_guest/config.rb', line 11

def initialize
  super

  @functional = UNSET_VALUE
  @map_uid    = UNSET_VALUE
  @map_gid    = UNSET_VALUE
  @verify_installed = UNSET_VALUE
end

Instance Attribute Details

#functionalObject

Returns the value of attribute functional.



6
7
8
# File 'lib/vagrant-nfs_guest/config.rb', line 6

def functional
  @functional
end

#map_gidObject

Returns the value of attribute map_gid.



8
9
10
# File 'lib/vagrant-nfs_guest/config.rb', line 8

def map_gid
  @map_gid
end

#map_uidObject

Returns the value of attribute map_uid.



7
8
9
# File 'lib/vagrant-nfs_guest/config.rb', line 7

def map_uid
  @map_uid
end

#verify_installedObject

Returns the value of attribute verify_installed.



9
10
11
# File 'lib/vagrant-nfs_guest/config.rb', line 9

def verify_installed
  @verify_installed
end

Instance Method Details

#finalize!Object



20
21
22
23
24
25
# File 'lib/vagrant-nfs_guest/config.rb', line 20

def finalize!
  @functional = true if @functional == UNSET_VALUE
  @map_uid = nil if @map_uid == UNSET_VALUE
  @map_gid = nil if @map_gid == UNSET_VALUE
  @verify_installed = true if @verify_installed == UNSET_VALUE
end

#to_sObject



27
28
29
# File 'lib/vagrant-nfs_guest/config.rb', line 27

def to_s
  "NFS_Guest"
end