2012-05-26 12:37:49 +02:00
|
|
|
require File.join(Rails.root, "lib", "gitlab", "gitolite")
|
2011-12-04 00:44:59 +01:00
|
|
|
|
2012-05-26 12:37:49 +02:00
|
|
|
module Gitlab
|
2011-12-04 00:44:59 +01:00
|
|
|
class GitHost
|
|
|
|
def self.system
|
2012-05-26 12:37:49 +02:00
|
|
|
Gitlab::Gitolite
|
2011-12-04 00:44:59 +01:00
|
|
|
end
|
|
|
|
|
|
|
|
def self.admin_uri
|
2012-07-02 20:51:48 +02:00
|
|
|
Gitlab.config.git_host.admin_uri
|
2011-12-04 00:44:59 +01:00
|
|
|
end
|
2011-12-05 08:43:53 +01:00
|
|
|
|
|
|
|
def self.url_to_repo(path)
|
2012-07-02 20:51:48 +02:00
|
|
|
Gitlab.config.ssh_path + "#{path}.git"
|
2011-12-05 08:43:53 +01:00
|
|
|
end
|
2011-12-04 00:44:59 +01:00
|
|
|
end
|
|
|
|
end
|