Debian Codegraph @

cpan/CPAN-Meta-YAML/t/tml-world/Plagger.tml

raw
1 #####################################################################
2 # Example Plagger Configuration 1
3
4 === Plagger
5 --- yaml
6 plugins:
7 - module: Subscription::Bloglines
8 config:
9 username: [email protected]
10 password: foobar
11 mark_read: 1
12
13 - module: Publish::Gmail
14 config:
15 mailto: [email protected]
16 mailfrom: [email protected]
17 mailroute:
18 via: smtp
19 host: smtp.example.com
20 --- perl
21 [ { plugins => [
22 {
23 module => 'Subscription::Bloglines',
24 config => {
25 username => '[email protected]',
26 password => 'foobar',
27 mark_read => 1,
28 },
29 },
30 {
31 module => 'Publish::Gmail',
32 config => {
33 mailto => '[email protected]',
34 mailfrom => '[email protected]',
35 mailroute => {
36 via => 'smtp',
37 host => 'smtp.example.com',
38 },
39 },
40 },
41 ] } ]
42
43
44 #####################################################################
45 # Example Plagger Configuration 2
46
47 === plagger2
48 --- yaml
49 plugins:
50 - module: Subscription::Config
51 config:
52 feed:
53 # Trac's feed for changesets
54 - http://plagger.org/.../rss
55
56 # I don't like to be notified of the same items
57 # more than once
58 - module: Filter::Rule
59 rule:
60 module: Fresh
61 mtime:
62 path: /tmp/rssbot.time
63 autoupdate: 1
64
65 - module: Notify::IRC
66 config:
67 daemon_port: 9999
68 nickname: plaggerbot
69 server_host: chat.freenode.net
70 server_channels:
71 - '#plagger-ja'
72 - '#plagger'
73
74
75 --- perl
76 [ { plugins => [ {
77 module => 'Subscription::Config',
78 config => {
79 feed => [ 'http://plagger.org/.../rss' ],
80 },
81 }, {
82 module => 'Filter::Rule',
83 rule => {
84 module => 'Fresh',
85 mtime => {
86 path => '/tmp/rssbot.time',
87 autoupdate => 1,
88 },
89 },
90 }, {
91 module => 'Notify::IRC',
92 config => {
93 daemon_port => 9999,
94 nickname => 'plaggerbot',
95 server_host => 'chat.freenode.net',
96 server_channels => [
97 '#plagger-ja',
98 '#plagger',
99 ],
100 },
101 } ] } ]