/** * __construct - object initialization routine * * @param mixed $deployment deployment we are making the change too * * @access public * @return void */ public function __construct($deployment) { $amodule = AUTH_MODULE; $this->user = $amodule::getUser(); $this->ip = NagMisc::getIP(); $this->deployment = $deployment; }
public static function deleteDeployment($deployment) { if (self::$init === false) { self::init(); } $deploystyle = self::getDeploymentStyle($deployment); $keys = NagRedis::keys(md5('deployment:' . $deployment), true); NagRedis::del($keys); $auditkeys = NagRedis::keys(md5('deployment-audit:' . $deployment), true); NagRedis::del($auditkeys); if ($deploystyle == 'commonrepo') { self::delCommonRepo($deployment); } NagRedis::sRem(md5('deployments'), $deployment); $amodule = AUTH_MODULE; self::$log->addToLog($amodule::getUser() . ' ' . NagMisc::getIP() . ' deployment=' . $deployment . ' action=deployment_delete Bulk Removal of Deployment Issued'); }