summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2018-01-26 15:25:05 -0800
committerStan Hu <stanhu@gmail.com>2018-01-26 15:25:05 -0800
commit8bdced4288cb3c7eaefbb8486bfc4af73d90b21e (patch)
tree0accec773623ffb59b3efaec626aa886bebd4b1b
parent98dd492766e3455d75fcab47a6abfa100d5c859c (diff)
downloadgitlab-ce-sh-mute-notifications-seeder.tar.gz
Mute notifications in the seeder to speed GDK developmentsh-mute-notifications-seeder
-rw-r--r--lib/gitlab/seeder.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/lib/gitlab/seeder.rb b/lib/gitlab/seeder.rb
index 94a481a0f2e..98f005cb61b 100644
--- a/lib/gitlab/seeder.rb
+++ b/lib/gitlab/seeder.rb
@@ -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 "\nOK".color(:green)
end
+ def self.mute_notifications
+ NotificationService.prepend(MuteNotifications)
+ end
+
def self.mute_mailer
ActionMailer::MessageDelivery.prepend(DeliverNever)
end