13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
# File 'lib/popper/init.rb', line 13
def self.sample_config
"interval = 60 # fetch interbal default:60\n\n[default.condition]\nsubject = [\"^(?!.*Re:).+$\"]\n\n[default.action.slack]\nwebhook_url = \"webhook_url\"\nuser = \"slack\"\nchannel = \"#default_channel\"\nmessage = \"default message\"\n\n[example.login]\nserver = \"mail.examplejp\"\nuser = \"examplle_user\"\npassword = \"examplle_pass\"\n\n[example.default.condition]\nsubject = [\".*default.*\"]\n\n[example.rules.normal_log.condition]\nsubject = \".*example.*\"\nbody = \".*example.*\"\n\n[example.rules.normal_log.action.slack]\nchannel = \"#test\"\nmentions = [\"@test\"]\nmessage = \"test message\"\n\n[example.rules.normal_log.action.git]\nrepo = \"test/example\"\n\n[example.rules.normal_log.action.ghe]\nrepo = \"test/example\"\n EOS\nend\n"
|