summaryrefslogtreecommitdiff
path: root/app
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-11 19:27:26 +0200
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-02-11 19:27:26 +0200
commitea0cb39d63cb193179338b9348c40d59da5787b1 (patch)
tree23af500b7d5e7b19139dada7712bdc271b7d8a84 /app
parentdd8d0a659d947df0dcaaae2960aa1567a8740b11 (diff)
downloadgitlab-ce-ea0cb39d63cb193179338b9348c40d59da5787b1.tar.gz
use proper name for gitlabshell worker
Diffstat (limited to 'app')
-rw-r--r--app/observers/key_observer.rb4
-rw-r--r--app/observers/project_observer.rb4
-rw-r--r--app/workers/gitlab_shell_worker.rb2
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