Class: ConfigBuilder::Model::SyncedFolder

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

Overview

Vagrant shared folder model.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods inherited from Base

#attrs=, #call, def_model_attribute, model_attributes, new_from_hash

Instance Attribute Details

#disabledBoolean

Returns If the mount point should be disabled.

Returns:

  • (Boolean)

    If the mount point should be disabled.



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

def_model_attribute :disabled

#extraString

A set of arbitrary options to pass to the virtualbox mount command.

Returns:

  • (String)


17
# File 'lib/config_builder/model/synced_folder.rb', line 17

def_model_attribute :extra

#guest_pathString

Returns The guest file path to be used as the mount point.

Returns:

  • (String)

    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_pathString

Returns The host file path to mount on the guest.

Returns:

  • (String)

    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

#nfsBoolean

Returns If the mount point should use NFS.

Returns:

  • (Boolean)

    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_procObject



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