Module: Vagrant::Action::Builtin::Remote::MixinSyncedFolders
- Defined in:
- lib/vagrant/action/builtin/remote/mixin_synced_folders.rb
Class Method Summary collapse
-
.prepended(klass) ⇒ Object
Add an attribute accesor for the basis_client when applied to the MixinSyncedFolders class.
Instance Method Summary collapse
-
#default_synced_folder_type(machine, plugins) ⇒ Object
This should never be called?.
-
#save_synced_folders(machine, folders, opts = {}) ⇒ Object
Synced folder management happens on the vagrant server.
-
#synced_folders(machine, **opts) ⇒ Hash<Symbol, Hash<String, Hash>>
This returns the set of shared folders that should be done for this machine.
Class Method Details
.prepended(klass) ⇒ Object
Add an attribute accesor for the basis_client when applied to the MixinSyncedFolders class
13 14 15 16 17 |
# File 'lib/vagrant/action/builtin/remote/mixin_synced_folders.rb', line 13 def self.prepended(klass) klass.class_eval do attr_accessor :basis_client end end |
Instance Method Details
#default_synced_folder_type(machine, plugins) ⇒ Object
This should never be called?
20 21 22 |
# File 'lib/vagrant/action/builtin/remote/mixin_synced_folders.rb', line 20 def default_synced_folder_type(machine, plugins) nil end |
#save_synced_folders(machine, folders, opts = {}) ⇒ Object
Synced folder management happens on the vagrant server. Do nothing here
26 27 28 |
# File 'lib/vagrant/action/builtin/remote/mixin_synced_folders.rb', line 26 def save_synced_folders(machine, folders, opts={}) nil end |
#synced_folders(machine, **opts) ⇒ Hash<Symbol, Hash<String, Hash>>
This returns the set of shared folders that should be done for this machine. It returns the folders in a hash keyed by the implementation class for the synced folders.
35 36 37 |
# File 'lib/vagrant/action/builtin/remote/mixin_synced_folders.rb', line 35 def synced_folders(machine, **opts) machine.synced_folders end |