gitlabhq/lib/gitlab/git_host.rb

18 lines
307 B
Ruby
Raw Normal View History

require File.join(Rails.root, "lib", "gitlab", "gitolite")
2011-12-04 00:44:59 +01:00
module Gitlab
2011-12-04 00:44:59 +01:00
class GitHost
def self.system
Gitlab::Gitolite
2011-12-04 00:44:59 +01:00
end
def self.admin_uri
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)
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