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