File Coverage

blib/lib/Siebel/Srvrmgr/Daemon/Action/Dumper.pm
Criterion Covered Total %
statement 9 9 100.0
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 12 12 100.0


line stmt bran cond sub pod time code
1             package Siebel::Srvrmgr::Daemon::Action::Dumper;
2              
3             =pod
4              
5             =head1 NAME
6              
7             Siebel::Srvrmgr::Daemon::Action::Dumper - subclass for Siebel::Srvrmgr::Daemon::Action to dump buffer content
8              
9             =head1 SYNOPSIS
10              
11             See L<Siebel::Srvrmgr::Daemon::Action> for an example.
12              
13             =head1 DESCRIPTION
14              
15             This is a subclass of L<Siebel::Srvrmgr::Daemon::Action> that will dump a buffer content (array reference) passed
16             as parameter to the it's C<do> method.
17              
18             This class uses L<Data::Dumper> them to print the buffer content to C<STDOUT>.
19              
20             =cut
21              
22 3     3   5297 use Moose;
  3         4  
  3         19  
23 3     3   14994 use namespace::autoclean;
  3         4  
  3         24  
24 3     3   211 use Data::Dumper;
  3         5  
  3         476  
25              
26             extends 'Siebel::Srvrmgr::Daemon::Action';
27              
28             =head1 METHODS
29              
30             =head2 do_parsed
31              
32             It will print the content of the parsed tree to C<STDOUT> by using L<Data::Dumper> C<Dump> function.
33              
34             This functions always returns true.
35              
36             =cut
37              
38             override 'do_parsed' => sub {
39              
40             my $self = shift;
41             my $item = shift;
42              
43             print Dumper($item);
44              
45             return 1;
46              
47             };
48              
49             =pod
50              
51             =head1 SEE ALSO
52              
53             L<Siebel::Srvrmgr::Daemon::Action>
54              
55             =head1 AUTHOR
56              
57             Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
58              
59             =head1 COPYRIGHT AND LICENSE
60              
61             This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
62              
63             This file is part of Siebel Monitoring Tools.
64              
65             Siebel Monitoring Tools is free software: you can redistribute it and/or modify
66             it under the terms of the GNU General Public License as published by
67             the Free Software Foundation, either version 3 of the License, or
68             (at your option) any later version.
69              
70             Siebel Monitoring Tools is distributed in the hope that it will be useful,
71             but WITHOUT ANY WARRANTY; without even the implied warranty of
72             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
73             GNU General Public License for more details.
74              
75             You should have received a copy of the GNU General Public License
76             along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.
77              
78             =cut
79              
80             __PACKAGE__->meta->make_immutable;