File: Plagger.tml

package info (click to toggle)
libyaml-tiny-perl 1.64-1
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 556 kB
  • ctags: 80
  • sloc: perl: 1,363; makefile: 2
file content (101 lines) | stat: -rw-r--r-- 2,189 bytes parent folder | download | duplicates (15)
1
2
3
4
5
6
7
8
9
10
11
12
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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
#####################################################################
# Example Plagger Configuration 1

=== Plagger
--- yaml
plugins:
  - module: Subscription::Bloglines
    config:
      username: you@example.pl
      password: foobar
      mark_read: 1

  - module: Publish::Gmail
    config:
      mailto: example@gmail.com
      mailfrom: miyagawa@example.com
      mailroute:
        via: smtp
        host: smtp.example.com
--- perl
[ { plugins => [
    {
        module => 'Subscription::Bloglines',
        config => {
            username  => 'you@example.pl',
            password  => 'foobar',
            mark_read => 1,
        },
    },
    {
        module => 'Publish::Gmail',
        config => {
            mailto    => 'example@gmail.com',
            mailfrom  => 'miyagawa@example.com',
            mailroute => {
                via  => 'smtp',
                host => 'smtp.example.com',
            },
        },
    },
] } ]


#####################################################################
# Example Plagger Configuration 2

=== plagger2
--- yaml
plugins:
 - module: Subscription::Config
   config:
     feed:
        # Trac's feed for changesets
        - http://plagger.org/.../rss

 # I don't like to be notified of the same items
 # more than once
 - module: Filter::Rule
   rule:
     module: Fresh
     mtime:
       path: /tmp/rssbot.time
       autoupdate: 1

 - module: Notify::IRC
   config:
     daemon_port: 9999
     nickname: plaggerbot
     server_host: chat.freenode.net
     server_channels:
       - '#plagger-ja'
       - '#plagger'


--- perl
[ { plugins => [ {
    module => 'Subscription::Config',
    config => {
        feed => [ 'http://plagger.org/.../rss' ],
    },
}, {
    module => 'Filter::Rule',
    rule   => {
        module => 'Fresh',
        mtime  => {
            path => '/tmp/rssbot.time',
            autoupdate => 1,
        },
    },
}, {
    module => 'Notify::IRC',
    config => {
        daemon_port     => 9999,
        nickname        => 'plaggerbot',
        server_host     => 'chat.freenode.net',
        server_channels => [
            '#plagger-ja',
            '#plagger',
        ],
    },
} ] } ]