Sha256: 95410f6510f2362d77cccbd0fe736efdb1d45442924b16ca533afcd037458f04

Contents?: true

Size: 1.12 KB

Versions: 4

Compression:

Stored size: 1.12 KB

Contents

module Vagrant
  module Action
    module Builtin
      # This module enables MixinSyncedFolder for server mode
      module Remote

        module MixinSyncedFolders
          # Add an attribute accesor for the basis_client
          # when applied to the MixinSyncedFolders class
          def self.prepended(klass)
            klass.class_eval do
              attr_accessor :basis_client
            end
          end

          # This should never be called?
          def default_synced_folder_type(machine, plugins)
            nil
          end

          # Synced folder management happens on the vagrant server. 
          # Do nothing here
          def save_synced_folders(machine, folders, opts={})
            nil
          end

          # 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.
          #
          # @return [Hash<Symbol, Hash<String, Hash>>]
          def synced_folders(machine, **opts)
            machine.synced_folders
          end
        end
      end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
vagrant-unbundled-2.3.6.0 lib/vagrant/action/builtin/remote/mixin_synced_folders.rb
tamtam-vagrant-reload-1.2.1 vendor/cache/vagrant-2092df529ae7/lib/vagrant/action/builtin/remote/mixin_synced_folders.rb
vagrant-unbundled-2.3.3.0 lib/vagrant/action/builtin/remote/mixin_synced_folders.rb
vagrant-unbundled-2.3.2.0 lib/vagrant/action/builtin/remote/mixin_synced_folders.rb