diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-05-26 13:37:49 +0300 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-05-26 13:37:49 +0300 |
commit | 3272620f724737f4dbb5e8c02f1610946435cd29 (patch) | |
tree | ae9fb3daccdf6b008ccb9c31d435e9548113c6ee /lib/gitlabhq/git_host.rb | |
parent | 8ceb94081ac516ccaed43f0f4841725a4f9fe2db (diff) | |
download | gitlab-ce-3272620f724737f4dbb5e8c02f1610946435cd29.tar.gz |
lib/ refactoring. Module Gitlabhq renamed to Gitlab
Diffstat (limited to 'lib/gitlabhq/git_host.rb')
-rw-r--r-- | lib/gitlabhq/git_host.rb | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/lib/gitlabhq/git_host.rb b/lib/gitlabhq/git_host.rb deleted file mode 100644 index 9a6eecb3f0a..00000000000 --- a/lib/gitlabhq/git_host.rb +++ /dev/null @@ -1,21 +0,0 @@ -require File.join(Rails.root, "lib", "gitlabhq", "gitolite") - -module Gitlabhq - class GitHost - def self.system - Gitlabhq::Gitolite - end - - def self.admin_uri - GIT_HOST["admin_uri"] - end - - def self.url_to_repo(path) - if !GIT_HOST["port"] or GIT_HOST["port"] == 22 - "#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:#{path}.git" - else - "ssh://#{GIT_HOST["git_user"]}@#{GIT_HOST["host"]}:#{GIT_HOST["port"]}/#{path}.git" - end - end - end -end |