Module: VagrantPlugins::SyncedFolderNFSGuest::ProviderParallels::Cap

Defined in:
lib/vagrant-nfs_guest/providers/parallels/cap/nfs_settings.rb

Class Method Summary collapse

Class Method Details

.nfs_settings(machine) ⇒ Object

Raises:

  • (Vagrant::Errors::NFSNoHostonlyNetwork)


6
7
8
9
10
11
12
13
# File 'lib/vagrant-nfs_guest/providers/parallels/cap/nfs_settings.rb', line 6

def self.nfs_settings(machine)
  host_ip  = machine.provider.driver.read_shared_interface[:ip]
  machine_ip = machine.provider.driver.read_guest_ip

  raise Vagrant::Errors::NFSNoHostonlyNetwork if !host_ip || !machine_ip

  return host_ip, machine_ip
end