Prose\ExpectsHost::screenIsNotRunning PHP Method

screenIsNotRunning() public method

public screenIsNotRunning ( $sessionName )
    public function screenIsNotRunning($sessionName)
    {
        // what are we doing?
        $log = usingLog()->startAction("make sure screen session '{$sessionName}' is not running on host '{$this->args[0]}'");
        // get the details
        if (!fromHost($this->args[0])->getScreenIsRunning($sessionName)) {
            $log->endAction("session is not running");
            return;
        }
        $log->endAction("session is running");
        throw new E5xx_ExpectFailed(__METHOD__, "session not running", "session running as PID {$processDetails->pid}");
    }