diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-15 15:45:57 +0200 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2015-07-15 15:45:57 +0200 |
commit | a87989fb7d0c4f05658ba29dec48ecefedf32334 (patch) | |
tree | c47c0ad8662105b0e711947c2833a1c45159cc49 /lib/gitlab/backend | |
parent | 277f311f20739bd97f4059b51dfa1dbc38aa38e1 (diff) | |
download | gitlab-ce-a87989fb7d0c4f05658ba29dec48ecefedf32334.tar.gz |
Remove satellites
Diffstat (limited to 'lib/gitlab/backend')
-rw-r--r-- | lib/gitlab/backend/shell.rb | 14 |
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 |