| 1 | package PGP::Finger; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | |||||||||||
| 5 | # ABSTRACT: retrieve PGP keys from different sources | ||||||||||
| 6 | 1 | our $VERSION = '1.1'; # VERSION | |||||||||
| 7 | |||||||||||
| 8 | 1 | ▶ | use PGP::Finger::DNS; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | 1 | ▶ | use PGP::Finger::Keyserver; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | 1 | ▶ | use PGP::Finger::ResultSet; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | has 'sources' => ( is => 'ro', isa => 'ArrayRef[PGP::Finger::Source]', lazy => 1, | ||||||||||
| 13 | 0 | ▶ | default => sub { [ | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 14 | 0 | PGP::Finger::DNS->new, | |||||||||
| 15 | PGP::Finger::Keyserver->new, | ||||||||||
| 16 | ] }, | ||||||||||
| 17 | 1 | ); | |||||||||
| 18 | |||||||||||
| 19 | 0 | ▶ | sub fetch { | ||||||||
|
Subroutine
fetch: not called CC=3 SCAR=24.8
Pod
undocumented
| |||||||||||
| 20 | 0 | my ( $self, $addr ) = @_; | |||||||||
| 21 | 0 | my $resultset = PGP::Finger::ResultSet->new; | |||||||||
| 22 | |||||||||||
| 23 | 0 | foreach my $source ( @{$self->sources} ) { | |||||||||
| 24 | 0 | my $result = $source->fetch( $addr ); | |||||||||
| 25 | 0 | ▶ | if( ! defined $result ) { next; } | ||||||||
|
Branch: 1 branch
| |||||||||||
| 26 | 0 | $resultset->add_result( $result ); | |||||||||
| 27 | } | ||||||||||
| 28 | 0 | return $resultset; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 1 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||