blob: b9d209dd0fe507d272563cf4965d78aae883d990 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
|
module Gitlab
module GitalyClient
module Util
class << self
def repository(repository_storage, relative_path)
Gitaly::Repository.new(
path: File.join(Gitlab.config.repositories.storages[repository_storage]['path'], relative_path),
storage_name: repository_storage,
relative_path: relative_path,
)
end
def channel(repository_storage)
GitalyClient.get_channel(repository_storage)
end
end
end
end
end
|