Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
8bdced42
Commit
8bdced42
authored
Jan 26, 2018
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Mute notifications in the seeder to speed GDK development
parent
98dd4927
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
0 deletions
+10
-0
lib/gitlab/seeder.rb
lib/gitlab/seeder.rb
+10
-0
No files found.
lib/gitlab/seeder.rb
View file @
8bdced42
...
...
@@ -5,9 +5,15 @@ module DeliverNever
end
end
module
MuteNotifications
def
new_note
(
note
)
end
end
module
Gitlab
class
Seeder
def
self
.
quiet
mute_notifications
mute_mailer
SeedFu
.
quiet
=
true
...
...
@@ -18,6 +24,10 @@ module Gitlab
puts
"
\n
OK"
.
color
(
:green
)
end
def
self
.
mute_notifications
NotificationService
.
prepend
(
MuteNotifications
)
end
def
self
.
mute_mailer
ActionMailer
::
MessageDelivery
.
prepend
(
DeliverNever
)
end
...
...
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