Class: ConfigBuilder::Model::NFS
- Defined in:
- lib/config_builder/model/nfs.rb
Overview
Vagrant NFS model
Instance Attribute Summary collapse
-
#functional ⇒ Boolean
If false, then NFS will not be used as a synced folder type.
-
#map_gid ⇒ Fixnum
The GID to map all read/write requests to.
-
#map_uid ⇒ Fixnum
The UID to map all read/write requests to.
-
#verify_installed ⇒ Boolean
If this is false, then Vagrant will skip checking if NFS is installed.
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
#functional ⇒ Boolean
Returns 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_gid ⇒ Fixnum
Returns 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_uid ⇒ Fixnum
Returns 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_installed ⇒ Boolean
Returns 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_proc ⇒ Object
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 |