public function stopAllScreens()
{
// what are we doing?
$log = usingLog()->startAction("stop all running screen sessions on host '{$this->args[0]}'");
// get the app details
$processes = fromHost($this->args[0])->getAllScreenSessions();
// stop the process
foreach ($processes as $processDetails) {
usingHost($this->args[0])->stopProcess($processDetails->pid);
usingProcessesTable()->removeProcess($this->args[0], $processDetails);
}
// all done
$log->endAction("stopped " . count($processes) . " session(s)");
}