Prose\ExpectsSupervisor::programIsRunning PHP Method

programIsRunning() public method

public programIsRunning ( $programName )
    public function programIsRunning($programName)
    {
        // what are we doing?
        $log = usingLog()->startAction("make sure program '{$programName}' is running on host '{$this->args[0]}'");
        // make sure we have valid host details
        $hostDetails = $this->getHostDetails();
        // is it running?
        $running = fromSupervisor($hostDetails->hostId)->getProgramIsRunning($programName);
        if (!$running) {
            $log->endAction();
            throw new E5xx_ExpectFailed(__METHOD__, 'program is running', 'program is not running');
        }
        // all done
        $log->endAction();
    }