Class: GitAclShell::Acl::HTTPAcl
- Inherits:
-
Object
- Object
- GitAclShell::Acl::HTTPAcl
- Includes:
- HTTParty
- Defined in:
- lib/git_acl_shell/acl/http_acl.rb
Instance Method Summary collapse
Instance Method Details
#authorized?(key_id, repo_base_name) ⇒ Boolean
8 9 10 11 |
# File 'lib/git_acl_shell/acl/http_acl.rb', line 8 def (key_id, repo_base_name) response = self.class.get("/permission", query: { 'key-id' => key_id, 'repo-base-name' => repo_base_name }) response.ok? end |