Exemplo n.º 1
0
 public function removeHostFromAllRoles($hostId)
 {
     // what are we doing?
     $log = usingLog()->startAction("remove host '{$hostId}' from all roles");
     // remove it
     usingRuntimeTableForTargetEnvironment($this->entryKey)->removeItemFromAllGroups($hostId);
     // all done
     $log->endAction();
 }
Exemplo n.º 2
0
 /**
  * removeHost
  *
  * @param string $hostId
  *        ID of the host to remove
  *
  * @return void
  */
 public function removeHost($hostId)
 {
     // what are we doing?
     $log = usingLog()->startAction("remove host '{$hostId}' from current test environment hosts table");
     // remove it
     usingRuntimeTableForTargetEnvironment($this->entryKey)->removeItem($hostId);
     // all done
     $log->endAction();
 }