Class: GitAclShell::Directory::HTTPDirectory

Inherits:
Object
  • Object
show all
Includes:
HTTParty
Defined in:
lib/git_acl_shell/directory/http_directory.rb

Instance Method Summary collapse

Instance Method Details

#lookup(repo_alias) ⇒ Object



9
10
11
12
13
14
15
16
# File 'lib/git_acl_shell/directory/http_directory.rb', line 9

def lookup(repo_alias)
  response = self.class.get("/repo-base-name", query: { alias: repo_alias })
  if response.ok?
    return response.body
  else
    raise UnknownAlias
  end
end