Class: ConfigBuilder::Model::SyncedFolder
- Defined in:
- lib/config_builder/model/synced_folder.rb
Overview
Vagrant shared folder model.
Instance Attribute Summary collapse
-
#disabled ⇒ Boolean
If the mount point should be disabled.
-
#extra ⇒ String
A set of arbitrary options to pass to the virtualbox mount command.
-
#guest_path ⇒ String
The guest file path to be used as the mount point.
-
#host_path ⇒ String
The host file path to mount on the guest.
-
#nfs ⇒ Boolean
If the mount point should use NFS.
Instance Method Summary collapse
Methods inherited from Base
#attrs=, #call, def_model_attribute, model_attributes, new_from_hash
Instance Attribute Details
#disabled ⇒ Boolean
Returns If the mount point should be disabled.
21 |
# File 'lib/config_builder/model/synced_folder.rb', line 21 def_model_attribute :disabled |
#extra ⇒ String
A set of arbitrary options to pass to the virtualbox mount command.
17 |
# File 'lib/config_builder/model/synced_folder.rb', line 17 def_model_attribute :extra |
#guest_path ⇒ String
Returns The guest file path to be used as the mount point.
12 |
# File 'lib/config_builder/model/synced_folder.rb', line 12 def_model_attribute :guest_path |
#host_path ⇒ String
Returns The host file path to mount on the guest.
8 |
# File 'lib/config_builder/model/synced_folder.rb', line 8 def_model_attribute :host_path |
#nfs ⇒ Boolean
Returns If the mount point should use NFS.
25 |
# File 'lib/config_builder/model/synced_folder.rb', line 25 def_model_attribute :nfs |
Instance Method Details
#to_proc ⇒ Object
27 28 29 30 31 |
# File 'lib/config_builder/model/synced_folder.rb', line 27 def to_proc Proc.new do |vm_config| vm_config.synced_folder(attr(:host_path), attr(:guest_path), folder_opts) end end |