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

determineHostname() public method

public determineHostname ( stdClass $vmDetails ) : string
$vmDetails stdClass
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, new VagrantVm($this->st));
        // all done
        $log->endAction("hostname is '{$hostname}'");
        return $hostname;
    }