/usr/share/perl5/Config/Identity/PAUSE.pm is in libconfig-identity-perl 0.0019-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 | use strict;
use warnings;
package Config::Identity::PAUSE;
our $VERSION = '0.0019';
use Config::Identity;
use Carp;
our $STUB = 'pause';
sub STUB { defined $_ and return $_ for $ENV{CI_PAUSE_STUB}, $STUB }
sub load {
my $self = shift;
my %identity = Config::Identity->try_best( $self->STUB );
$identity{user} = $identity{username} if exists $identity{username} && ! exists $identity{user};
$identity{username} = $identity{user} if exists $identity{user} && ! exists $identity{username};
return %identity;
}
sub check {
my $self = shift;
my %identity = @_;
my @missing;
defined $identity{$_} && length $identity{$_}
or push @missing, $_ for qw/ user password /;
croak "Missing ", join ' and ', @missing if @missing;
}
sub load_check {
my $self = shift;
my %identity = $self->load;
$self->check( %identity );
return %identity;
}
1;
|