예제 #1
0
 /**
  * __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;
 }
예제 #2
0
 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');
 }