public function getHostIsRunning()
{
// what are we doing?
$log = usingLog()->startAction("is host '{$this->args[0]}' running?");
// make sure we have valid host details
$hostDetails = $this->getHostDetails();
// get an object to talk to this host
$host = HostLib::getHostAdapter($this->st, $hostDetails->type);
// if the box is running, it should have a status of 'running'
$result = $host->isRunning($hostDetails);
if (!$result) {
$log->endAction("host is not running");
return false;
}
// all done
$log->endAction("host is running");
return true;
}