From ea0cb39d63cb193179338b9348c40d59da5787b1 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets 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 4146216d..664cbdfd 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 cc2a0224..4b1f8295 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 0b8a5497..0a921b1b 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