summaryrefslogtreecommitdiff
path: root/lib/gitlab/backend
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-15 15:45:57 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2015-07-15 15:45:57 +0200
commita87989fb7d0c4f05658ba29dec48ecefedf32334 (patch)
treec47c0ad8662105b0e711947c2833a1c45159cc49 /lib/gitlab/backend
parent277f311f20739bd97f4059b51dfa1dbc38aa38e1 (diff)
downloadgitlab-ce-a87989fb7d0c4f05658ba29dec48ecefedf32334.tar.gz
Remove satellites
Diffstat (limited to 'lib/gitlab/backend')
-rw-r--r--lib/gitlab/backend/shell.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/lib/gitlab/backend/shell.rb b/lib/gitlab/backend/shell.rb
index 172d4902add..14ee4701e7b 100644
--- a/lib/gitlab/backend/shell.rb
+++ b/lib/gitlab/backend/shell.rb
@@ -217,20 +217,6 @@ module Gitlab
FileUtils.mv(full_path(old_name), full_path(new_name))
end
- # Remove GitLab Satellites for provided path (namespace or repo dir)
- #
- # Ex.
- # rm_satellites("gitlab")
- #
- # rm_satellites("gitlab/gitlab-ci.git")
- #
- def rm_satellites(path)
- raise ArgumentError.new("Path can't be blank") if path.blank?
-
- satellites_path = File.join(Gitlab.config.satellites.path, path)
- FileUtils.rm_r(satellites_path, force: true)
- end
-
def url_to_repo(path)
Gitlab.config.gitlab_shell.ssh_path_prefix + "#{path}.git"
end