SecretsManager.pm

filter: Statementstmt 88.8% 24 / 27 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 87.5% 7 / 8 Podpod 0.0% 0 / 1 totaltotal 86.1% 31 / 36 CC 1 SCAR 1.2
CC
1
Cov
89%
find_secret_arn
2.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.1
« ACM.pm ↑ Summary FargateStack/Pod.pm »
1 package App::SecretsManager;
2  
3 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
4 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
5  
6 1 ▶use Carp;
Subroutine BEGIN: called CC=1 SCAR=0.0
7 1 ▶use Data::Dumper;
Subroutine BEGIN: called CC=1 SCAR=0.0
8 1 ▶use English qw(-no_match_vars);
Subroutine BEGIN: called CC=1 SCAR=0.0
9  
10 1 ▶use Role::Tiny::With;
Subroutine BEGIN: called CC=1 SCAR=0.0
11 1 with 'App::AWS';
12  
13 1 ▶use parent qw(App::Command);
Subroutine BEGIN: called CC=1 SCAR=0.0
14  
15 1 __PACKAGE__->mk_accessors(qw(profile region));
16  
17 ########################################################################
18 0 ▶sub find_secret_arn {
Subroutine find_secret_arn: not called CC=1 SCAR=6.9
Pod undocumented
19 ########################################################################
20 0 my ( $self, $secret_name ) = @_;
21  
22 0 my $result = $self->command(
23 'list-secrets' => [
24 '--filters' => 'Key=name,Values=' . $secret_name,
25 '--query' => 'SecretList[].{ARN:ARN}',
26 '--output' => 'text'
27 ]
28 );
29  
30 0 return $result;
31 }
32  
33 1 1;
« ACM.pm ↑ Summary FargateStack/Pod.pm »