18 lines
369 B
Ruby
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
|