BigW Consortium Gitlab
Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
gitlab-ce
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Forest Godfrey
gitlab-ce
Commits
99760edc
Commit
99760edc
authored
Feb 20, 2013
by
Andrew8xx8
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Method moved to service
parent
aa1780d0
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
system_hook.rb
app/models/system_hook.rb
+0
-3
system_hooks_service.rb
app/services/system_hooks_service.rb
+5
-1
No files found.
app/models/system_hook.rb
View file @
99760edc
...
...
@@ -12,7 +12,4 @@
#
class
SystemHook
<
WebHook
def
async_execute
(
data
)
Sidekiq
::
Client
.
enqueue
(
SystemHookWorker
,
id
,
data
)
end
end
app/services/system_hooks_service.rb
View file @
99760edc
...
...
@@ -7,10 +7,14 @@ class SystemHooksService
def
self
.
execute_hooks
(
data
)
SystemHook
.
all
.
each
do
|
sh
|
sh
.
async_execute
data
async_execute_hook
sh
,
data
end
end
def
self
.
async_execute_hook
(
hook
,
data
)
Sidekiq
::
Client
.
enqueue
(
SystemHookWorker
,
hook
,
data
)
end
def
self
.
build_event_data
(
model
,
event
)
data
=
{
event_name:
build_event_name
(
model
,
event
),
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment