2011-12-03 18:44:59 -05:00
|
|
|
require File.join(Rails.root, "lib", "gitlabhq", "gitolite")
|
|
|
|
require File.join(Rails.root, "lib", "gitlabhq", "gitosis")
|
|
|
|
|
|
|
|
module Gitlabhq
|
|
|
|
class GitHost
|
|
|
|
def self.system
|
2011-12-05 02:23:53 -05:00
|
|
|
if GIT_HOST["system"] == "gitosis"
|
2011-12-03 18:44:59 -05:00
|
|
|
Gitlabhq::Gitosis
|
2011-12-05 02:23:53 -05:00
|
|
|
else
|
|
|
|
Gitlabhq::Gitolite
|
2011-12-03 18:44:59 -05:00
|
|
|
end
|
|
|
|
end
|
|
|
|
|
|
|
|
def self.admin_uri
|
|
|
|
GIT_HOST["admin_uri"]
|
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|