gitlab-org--gitlab-foss/lib/gitlabhq/git_host.rb
2011-12-04 01:44:59 +02:00

18 lines
369 B
Ruby

require File.join(Rails.root, "lib", "gitlabhq", "gitolite")
require File.join(Rails.root, "lib", "gitlabhq", "gitosis")
module Gitlabhq
class GitHost
def self.system
if GIT_HOST["system"] == "gitolite"
Gitlabhq::Gitolite
else
Gitlabhq::Gitosis
end
end
def self.admin_uri
GIT_HOST["admin_uri"]
end
end
end