root/trunk/plagger/lib/Plagger/Plugin/Aggregator/Null.pm

Revision 1173 (checked in by miyagawa, 14 years ago)

Merge from refactoring-planet. YAY!

Line 
1 package Plagger::Plugin::Aggregator::Null;
2 use strict;
3 use base qw( Plagger::Plugin );
4
5 sub register {
6     my($self, $context) = @_;
7     $context->register_hook(
8         $self,
9         'customfeed.handle'  => \&aggregate,
10     );
11 }
12
13 sub aggregate {
14     my($self, $context, $args) = @_;
15     $context->update->add($args->{feed});
16     return 1;
17 }
18
19 1;
20
21 __END__
22
23 =head1 NAME
24
25 Plagger::Plugin::Aggregator::Null - Aggregator that doesn't do anything
26
27 =head1 SYNOPSIS
28
29   - module: Aggregator::Null
30
31 =head1 DESCRIPTION
32
33 This plugin implements Plagger Aggregator but it doesn't do anything
34 useful. It could be only useful when you want to just pass subscribed
35 feed to Publish/Notify plugins, or inisde test scripts.
36
37 =head1 AUTHOR
38
39 Tatsuhiko Miyagawa
40
41 =head1 SEE ALSO
42
43 L<Plagger>
44
45 =cut
Note: See TracBrowser for help on using the browser.