| 1 | package MyCPAN::Indexer::Interface::Null; | ||||||||||
| 2 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | 1 | ▶ | use Log::Log4perl; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 1 | ▶ | use parent qw(MyCPAN::Indexer::Component); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use vars qw($VERSION $logger); | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | $VERSION = '1.282'; | |||||||||
| 10 | |||||||||||
| 11 | 1 | ▶ | BEGIN { | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 1 | $logger = Log::Log4perl->get_logger( 'Interface' ); | |||||||||
| 13 | } | ||||||||||
| 14 | |||||||||||
| 15 | =encoding utf8 | ||||||||||
| 16 | |||||||||||
| 17 | =head1 NAME | ||||||||||
| 18 | |||||||||||
| 19 | MyCPAN::Indexer::Interface::Null - Don't show anything | ||||||||||
| 20 | |||||||||||
| 21 | =head1 SYNOPSIS | ||||||||||
| 22 | |||||||||||
| 23 | Use this in backpan_indexer.pl by specifying it as the interface class: | ||||||||||
| 24 | |||||||||||
| 25 | # in backpan_indexer.config | ||||||||||
| 26 | interface_class MyCPAN::Indexer::Interface::Null | ||||||||||
| 27 | |||||||||||
| 28 | =head1 DESCRIPTION | ||||||||||
| 29 | |||||||||||
| 30 | This class doesn't show anything. It's a null interface. | ||||||||||
| 31 | |||||||||||
| 32 | =head2 Methods | ||||||||||
| 33 | |||||||||||
| 34 | =over 4 | ||||||||||
| 35 | |||||||||||
| 36 | =item component_type | ||||||||||
| 37 | |||||||||||
| 38 | This is an interface type. | ||||||||||
| 39 | |||||||||||
| 40 | =cut | ||||||||||
| 41 | |||||||||||
| 42 | 0 | ▶ | sub component_type { $_[0]->interface_type } | ||||||||
|
Subroutine
component_type: not called CC=1 SCAR=6.9
Pod
documented
| |||||||||||
| 43 | |||||||||||
| 44 | =item do_interface( $Notes ) | ||||||||||
| 45 | |||||||||||
| 46 | Run the interface_callback until the C<Finished> note is true. Don't do | ||||||||||
| 47 | anything else. | ||||||||||
| 48 | |||||||||||
| 49 | =cut | ||||||||||
| 50 | |||||||||||
| 51 | sub do_interface | ||||||||||
| 52 | 0 | ▶ | { | ||||||||
|
Subroutine
do_interface: not called CC=3 SCAR=24.8
Pod
documented
| |||||||||||
| 53 | 0 | my( $self ) = @_; | |||||||||
| 54 | 0 | $logger->debug( "Calling do_interface" ); | |||||||||
| 55 | |||||||||||
| 56 | 0 | while( 1 ) | |||||||||
| 57 | { | ||||||||||
| 58 | 0 | ▶ | last if $self->get_note('Finished'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 59 | |||||||||||
| 60 | 0 | $self->get_note('interface_callback')->(); | |||||||||
| 61 | } | ||||||||||
| 62 | |||||||||||
| 63 | 0 | my $collator = $self->get_coordinator->get_note( 'collator' ); | |||||||||
| 64 | 0 | ▶ | $collator->() if ref $collator eq ref sub {}; | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
Branch: 1 branch
| |||||||||||
| 65 | } | ||||||||||
| 66 | |||||||||||
| 67 | =back | ||||||||||
| 68 | |||||||||||
| 69 | =head1 SEE ALSO | ||||||||||
| 70 | |||||||||||
| 71 | MyCPAN::Indexer | ||||||||||
| 72 | |||||||||||
| 73 | =head1 SOURCE AVAILABILITY | ||||||||||
| 74 | |||||||||||
| 75 | This code is in Github: | ||||||||||
| 76 | |||||||||||
| 77 | git://github.com/briandfoy/mycpan-indexer.git | ||||||||||
| 78 | |||||||||||
| 79 | =head1 AUTHOR | ||||||||||
| 80 | |||||||||||
| 81 | brian d foy, C<< <bdfoy@cpan.org> >> | ||||||||||
| 82 | |||||||||||
| 83 | =head1 COPYRIGHT AND LICENSE | ||||||||||
| 84 | |||||||||||
| 85 | Copyright © 2008-2018, brian d foy <bdfoy@cpan.org>. All rights reserved. | ||||||||||
| 86 | |||||||||||
| 87 | You may redistribute this under the terms of the Artistic License 2.0. | ||||||||||
| 88 | |||||||||||
| 89 | =cut | ||||||||||
| 90 | |||||||||||
| 91 | 1 | 1; | |||||||||