Module: WatchDoge::Notification
- Defined in:
- lib/watchdoge/notification.rb,
lib/watchdoge/notification/base.rb,
lib/watchdoge/notification/mattermost.rb,
lib/watchdoge/notification/gitlab_repo.rb,
lib/watchdoge/notification/slack_webhook.rb
Defined Under Namespace
Classes: Base, GitlabRepo, Mattermost, SlackWebhook
Class Method Summary
collapse
Class Method Details
.flush ⇒ Object
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# File 'lib/watchdoge/notification.rb', line 42
def flush
raise_err = false
sources do |klass|
puts '[notification] flush'
raise_err = true if klass.msg_size > 0
klass.flush
end
if raise_err
raise WatchDoge::RegressionError, 'Has detected style changed. Regression failed'
end
end
|
.push(message) ⇒ Object
35
36
37
38
39
40
|
# File 'lib/watchdoge/notification.rb', line 35
def push message
sources do |klass|
puts "[notification] new msg push to #{klass}"
klass.push message
end
end
|