DataSift\Storyplayer\HostLib\VagrantVm::determineIpAddress PHP Method

determineIpAddress() public method

public determineIpAddress ( VagrantVmDetails $vmDetails ) : string
$vmDetails VagrantVmDetails
return string
    public function determineIpAddress($vmDetails)
    {
        // what are we doing?
        $log = usingLog()->startAction("determine IP address of Vagrant VM '{$vmDetails->hostId}'");
        // create an adapter to talk to the host operating system
        $host = OsLib::getHostAdapter($this->st, $vmDetails->osName);
        // get the IP address
        $ipAddress = $host->determineIpAddress($vmDetails, $this);
        // all done
        $log->endAction("IP address is '{$ipAddress}'");
        return $ipAddress;
    }