/** * Set the ACL rights for an user to a repository * * @param string $login * @param bool $r * @param bool $w * @param bool $a * @return Response */ public function set($login, $r = false, $w = false, $a = false) { $acl = ($r ? 'r' : '') . ($w ? 'w' : '') . ($a ? 'a' : ''); return $this->blih->request("POST", "/repository/" . $this->name . "/acls", ["user" => $login, "acl" => $acl]); }
/** * Delete a ssh key * * @return array */ public function delete() { return $this->blih->request("DELETE", "/sshkey/" . $this->name); }
/** * Delete a repository * * @return Response */ public function delete() { return $this->blih->request("DELETE", "/repository/" . $this->name); }