Class: ConfigBuilder::Model::NFS

Inherits:
Base
  • Object
show all
Defined in:
lib/config_builder/model/nfs.rb

Overview

Vagrant NFS model

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#attr, #attrs=, #call, #configure!, def_model_attribute, def_model_delegator, def_model_id, def_model_option, #eval_models, #instance_id, #instance_options, model_attributes, model_delegators, #model_delegators, model_options, new_from_hash, #with_attr

Instance Attribute Details

#functionalBoolean

Returns If false, then NFS will not be used as a synced folder type.

Returns:

  • (Boolean)

    If false, then NFS will not be used as a synced folder type.



8
# File 'lib/config_builder/model/nfs.rb', line 8

def_model_attribute :functional

#map_gidFixnum

Returns The GID to map all read/write requests to.

Returns:

  • (Fixnum)

    The GID to map all read/write requests to.



16
# File 'lib/config_builder/model/nfs.rb', line 16

def_model_attribute :map_gid

#map_uidFixnum

Returns The UID to map all read/write requests to.

Returns:

  • (Fixnum)

    The UID to map all read/write requests to.



12
# File 'lib/config_builder/model/nfs.rb', line 12

def_model_attribute :map_uid

#verify_installedBoolean

Returns If this is false, then Vagrant will skip checking if NFS is installed.

Returns:

  • (Boolean)

    If this is false, then Vagrant will skip checking if NFS is installed.



21
# File 'lib/config_builder/model/nfs.rb', line 21

def_model_attribute :verify_installed

Instance Method Details

#to_procObject



23
24
25
26
27
28
29
30
31
32
# File 'lib/config_builder/model/nfs.rb', line 23

def to_proc
  Proc.new do |global_config|
    nfs = global_config.nfs

    with_attr(:functional)       { |val| nfs.functional       = val }
    with_attr(:map_uid)          { |val| nfs.map_uid          = val }
    with_attr(:map_gid)          { |val| nfs.map_gid          = val }
    with_attr(:verify_installed) { |val| nfs.verify_installed = val }
  end
end