18 lines
307 B
Ruby
18 lines
307 B
Ruby
require File.join(Rails.root, "lib", "gitlab", "gitolite")
|
|
|
|
module Gitlab
|
|
class GitHost
|
|
def self.system
|
|
Gitlab::Gitolite
|
|
end
|
|
|
|
def self.admin_uri
|
|
Gitlab.config.git_host.admin_uri
|
|
end
|
|
|
|
def self.url_to_repo(path)
|
|
Gitlab.config.ssh_path + "#{path}.git"
|
|
end
|
|
end
|
|
end
|