APIEnvironment::getDeploy PHP Method

getDeploy() protected method

Deprecation: 2.0.0 - moved to DeployDispatcher
protected getDeploy ( integer $id ) : SS_HTTPResponse
$id integer
return SS_HTTPResponse
    protected function getDeploy($id)
    {
        $deploy = DNDeployment::get()->byID($id);
        if (!$deploy) {
            return $this->message('Deploy not found', 404);
        }
        $output = array('status' => $deploy->ResqueStatus(), 'message' => $deploy->LogContent());
        return $this->getAPIResponse($output);
    }