From ea0cb39d63cb193179338b9348c40d59da5787b1 Mon Sep 17 00:00:00 2001
From: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Date: Mon, 11 Feb 2013 19:27:26 +0200
Subject: [PATCH] use proper name for gitlabshell worker

---
 app/observers/key_observer.rb      | 4 ++--
 app/observers/project_observer.rb  | 4 ++--
 app/workers/gitlab_shell_worker.rb | 2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/app/observers/key_observer.rb b/app/observers/key_observer.rb
index 4146216d82f..664cbdfd234 100644
--- a/app/observers/key_observer.rb
+++ b/app/observers/key_observer.rb
@@ -2,7 +2,7 @@ class KeyObserver < ActiveRecord::Observer
   include Gitolited
 
   def after_save(key)
-    GitoliteWorker.perform_async(
+    GitlabShellWorker.perform_async(
       :add_key,
       key.shell_id,
       key.key
@@ -10,7 +10,7 @@ class KeyObserver < ActiveRecord::Observer
   end
 
   def after_destroy(key)
-    GitoliteWorker.perform_async(
+    GitlabShellWorker.perform_async(
       :remove_key,
       key.shell_id,
       key.key,
diff --git a/app/observers/project_observer.rb b/app/observers/project_observer.rb
index cc2a0224b72..4b1f8295dc2 100644
--- a/app/observers/project_observer.rb
+++ b/app/observers/project_observer.rb
@@ -1,6 +1,6 @@
 class ProjectObserver < ActiveRecord::Observer
   def after_create(project)
-    GitoliteWorker.perform_async(
+    GitlabShellWorker.perform_async(
       :add_repository,
       project.path_with_namespace
     )
@@ -13,7 +13,7 @@ class ProjectObserver < ActiveRecord::Observer
   end
 
   def after_destroy(project)
-    GitoliteWorker.perform_async(
+    GitlabShellWorker.perform_async(
       :remove_repository,
       project.path_with_namespace
     )
diff --git a/app/workers/gitlab_shell_worker.rb b/app/workers/gitlab_shell_worker.rb
index 0b8a5497111..0a921b1bd44 100644
--- a/app/workers/gitlab_shell_worker.rb
+++ b/app/workers/gitlab_shell_worker.rb
@@ -1,4 +1,4 @@
-class GitoliteWorker
+class GitlabShellWorker
   include Sidekiq::Worker
   include Gitolited
 
-- 
GitLab