Mute notifications in the seeder to speed GDK development
This commit is contained in:
parent
98dd492766
commit
8bdced4288
1 changed files with 10 additions and 0 deletions
|
@ -5,9 +5,15 @@ module DeliverNever
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
module MuteNotifications
|
||||||
|
def new_note(note)
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
module Gitlab
|
module Gitlab
|
||||||
class Seeder
|
class Seeder
|
||||||
def self.quiet
|
def self.quiet
|
||||||
|
mute_notifications
|
||||||
mute_mailer
|
mute_mailer
|
||||||
|
|
||||||
SeedFu.quiet = true
|
SeedFu.quiet = true
|
||||||
|
@ -18,6 +24,10 @@ module Gitlab
|
||||||
puts "\nOK".color(:green)
|
puts "\nOK".color(:green)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
def self.mute_notifications
|
||||||
|
NotificationService.prepend(MuteNotifications)
|
||||||
|
end
|
||||||
|
|
||||||
def self.mute_mailer
|
def self.mute_mailer
|
||||||
ActionMailer::MessageDelivery.prepend(DeliverNever)
|
ActionMailer::MessageDelivery.prepend(DeliverNever)
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in a new issue