plugins/kernel_v2/config/vm.rb
# Defines a synced folder pair. This pair of folders will be synced
# to/from the machine. Note that if the machine you're using doesn't
# support multi-directional syncing (perhaps an rsync backed synced
# folder) then the host is always synced to the guest but guest data
# may not be synced back to the host.
#
# @param [String] hostpath Path to the host folder to share. If this
#   is a relative path, it is relative to the location of the
#   Vagrantfile.
# @param [String] guestpath Path on the guest to mount the shared
#   folder.
# @param [Hash] options Additional options.
Defines a synced folder pair. This pair of folders will be synced
to/from the machine. Note that if the machine you're using doesn't
support multi-directional syncing (perhaps an rsync backed synced
folder) then the host is always synced to the guest but guest data
may not be synced back to the host.
Defines a synced folder pair . This pair of folders will be synced to / from the machine . Note that if the machine you ' re using doesn ' t support multi - directional syncing ( perhaps an rsync backed synced folder ) then the host is always synced to the guest but guest data may not be synced back to the host .
def synced_folder(hostpath, guestpath, options=nil)
        if Vagrant::Util::Platform.windows?
          hostpath = hostpath.to_s.gsub("\\", "/")
        end
        options ||= {}
        options = options.dup
        options[:guestpath] = guestpath.to_s.gsub(/\/$/, '')
        options[:hostpath]  = hostpath
        options[:type] = options[:type].to_sym if options[:type]
        @__synced_folders[options[:guestpath]] = options
      end
def synced_folder ( hostpath , guestpath , options = nil ) if Vagrant :: Util :: Platform . windows? hostpath = hostpath . to_s . gsub ( "\\" , "/" ) end options ||= { } options = options . dup options [ :guestpath ] = guestpath . to_s . gsub ( / \/ $ / , '' ) options [ :hostpath ] = hostpath options [ :type ] = options [ :type ] . to_sym if options [ :type ] @__synced_folders [ options [ :guestpath ] ] = options end
Defines a synced folder pair.
Defines a synced folder pair .
# On Windows, Ruby just uses normal '/' for path seps, so # just replace normal Windows style seps with Unix ones. # Make sure the type is a symbol
hostpath
<not_specific>
guestpath
<not_specific>
options
<not_specific>
<not_specific>
options Additional options.
options Additional options .