Esempio n. 1
0
 /**
  * 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]);
 }
Esempio n. 2
0
 /**
  * Delete a ssh key
  *
  * @return array
  */
 public function delete()
 {
     return $this->blih->request("DELETE", "/sshkey/" . $this->name);
 }
Esempio n. 3
0
 /**
  * Delete a repository
  *
  * @return Response
  */
 public function delete()
 {
     return $this->blih->request("DELETE", "/repository/" . $this->name);
 }