lib/vagrant-parallels/action/prepare_nfs_settings.rb
# Extracts the proper host and guest IPs for NFS mounts and stores them
# in the environment for the SyncedFolder action to use them in
# mounting.
#
# The ! indicates that this method modifies its argument.
Extracts the proper host and guest IPs for NFS mounts and stores them
in the environment for the SyncedFolder action to use them in
mounting.

The . indicates that this method modifies its argument.
Extracts the proper host and guest IPs for NFS mounts and stores them in the environment for the SyncedFolder action to use them in mounting . The . indicates that this method modifies its argument .
def add_ips_to_env!(env)
          host_ip  = @machine.provider.driver.read_shared_interface[:ip]
          guest_ip = @machine.provider.driver.read_guest_ip
          raise Vagrant::Errors::NFSNoHostIP  if !host_ip
          raise Vagrant::Errors::NFSNoGuestIP if !guest_ip
          env[:nfs_host_ip]    = host_ip
          env[:nfs_machine_ip] = guest_ip
        end
def add_ips_to_env! ( env ) host_ip = @machine . provider . driver . read_shared_interface [ :ip ] guest_ip = @machine . provider . driver . read_guest_ip raise Vagrant :: Errors :: NFSNoHostIP if ! host_ip raise Vagrant :: Errors :: NFSNoGuestIP if ! guest_ip env [ :nfs_host_ip ] = host_ip env [ :nfs_machine_ip ] = guest_ip end
Extracts the proper host and guest IPs for NFS mounts and stores them
in the environment for the SyncedFolder action to use them in
mounting.
Extracts the proper host and guest IPs for NFS mounts and stores them in the environment for the SyncedFolder action to use them in mounting .
# If we couldn't determine either guest's or host's IP, then # it is probably a bug. Display an appropriate error message.
env