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 2     2   5200 use Moose 2.0401;
  2         46  
  2         16  
23 2     2   12726 use namespace::autoclean 0.13;
  2         39  
  2         13  
24 2     2   170 use Data::Dumper;
  2         4  
  2         266  
25              
26             extends 'Siebel::Srvrmgr::Daemon::Action';
27             our $VERSION = '0.29'; # VERSION
28              
29             =head1 METHODS
30              
31             =head2 do_parsed
32              
33             It will print the content of the parsed tree to C<STDOUT> by using L<Data::Dumper> C<Dump> function.
34              
35             This functions always returns true.
36              
37             =cut
38              
39             override 'do_parsed' => sub {
40              
41             my $self = shift;
42             my $item = shift;
43              
44             print Dumper($item);
45              
46             return 1;
47              
48             };
49              
50             =pod
51              
52             =head1 SEE ALSO
53              
54             L<Siebel::Srvrmgr::Daemon::Action>
55              
56             =head1 AUTHOR
57              
58             Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
59              
60             =head1 COPYRIGHT AND LICENSE
61              
62             This software is copyright (c) 2012 of Alceu Rodrigues de Freitas Junior, E<lt>arfreitas@cpan.orgE<gt>
63              
64             This file is part of Siebel Monitoring Tools.
65              
66             Siebel Monitoring Tools is free software: you can redistribute it and/or modify
67             it under the terms of the GNU General Public License as published by
68             the Free Software Foundation, either version 3 of the License, or
69             (at your option) any later version.
70              
71             Siebel Monitoring Tools is distributed in the hope that it will be useful,
72             but WITHOUT ANY WARRANTY; without even the implied warranty of
73             MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
74             GNU General Public License for more details.
75              
76             You should have received a copy of the GNU General Public License
77             along with Siebel Monitoring Tools. If not, see <http://www.gnu.org/licenses/>.
78              
79             =cut
80              
81             __PACKAGE__->meta->make_immutable;