From 38737079b6c1096c2517e249198b8bc0bedf4156 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Sat, 9 Feb 2013 15:26:47 +0200 Subject: ignore docs by git --- doc/code/classes/NamespacedProject.html | 344 -------------------------------- 1 file changed, 344 deletions(-) delete mode 100644 doc/code/classes/NamespacedProject.html (limited to 'doc/code/classes/NamespacedProject.html') diff --git a/doc/code/classes/NamespacedProject.html b/doc/code/classes/NamespacedProject.html deleted file mode 100644 index 976338e8810..00000000000 --- a/doc/code/classes/NamespacedProject.html +++ /dev/null @@ -1,344 +0,0 @@ - - - - - NamespacedProject - - - - - - - - - - - - - -
-
- - - - - - - - - - - - - - - -
Methods
-
- -
C
-
- -
- -
N
-
- -
- -
P
-
- -
- -
T
-
- -
- -
- - - - - - - - - - - - - - - - - - - - -
Instance Public methods
- -
-
- - chief() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/roles/namespaced_project.rb, line 44
-def chief
-  if namespace
-    namespace_owner
-  else
-    owner
-  end
-end
-
-
- -
- -
-
- - name_with_namespace() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/roles/namespaced_project.rb, line 30
-def name_with_namespace
-  @name_with_namespace ||= begin
-                             if namespace
-                               namespace.human_name + " / " + name
-                             else
-                               name
-                             end
-                           end
-end
-
-
- -
- -
-
- - namespace_owner() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/roles/namespaced_project.rb, line 40
-def namespace_owner
-  namespace.try(:owner)
-end
-
-
- -
- -
-
- - path_with_namespace() - - -
- - -
- -
- - - - - - -
- - -
-
# File app/roles/namespaced_project.rb, line 52
-def path_with_namespace
-  if namespace
-    namespace.path + '/' + path
-  else
-    path
-  end
-end
-
-
- -
- -
-
- - transfer(new_namespace) - - -
- - -
- -
- - - - - - -
- - -
-
# File app/roles/namespaced_project.rb, line 2
-def transfer(new_namespace)
-  Project.transaction do
-    old_namespace = namespace
-    self.namespace = new_namespace
-
-    old_dir = old_namespace.try(:path) || ''
-    new_dir = new_namespace.try(:path) || ''
-
-    old_repo = if old_dir.present?
-                 File.join(old_dir, self.path)
-               else
-                 self.path
-               end
-
-    if Project.where(path: self.path, namespace_id: new_namespace.try(:id)).present?
-      raise TransferError.new("Project with same path in target namespace already exists")
-    end
-
-    Gitlab::ProjectMover.new(self, old_dir, new_dir).execute
-
-    git_host.move_repository(old_repo, self)
-
-    save!
-  end
-rescue Gitlab::ProjectMover::ProjectMoveError => ex
-  raise Project::TransferError.new(ex.message)
-end
-
-
- -
-
- -
- - \ No newline at end of file -- cgit v1.2.1