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

determineHostname() public method

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