blib/lib/CCfnX/CommonArgs.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
statement | 3 | 3 | 100.0 |
branch | n/a | ||
condition | n/a | ||
subroutine | 1 | 1 | 100.0 |
pod | n/a | ||
total | 4 | 4 | 100.0 |
line | stmt | bran | cond | sub | pod | time | code |
---|---|---|---|---|---|---|---|
1 | package CCfnX::CommonArgs { | ||||||
2 | 12 | 12 | 1314568 | use Moose; | |||
12 | 48 | ||||||
12 | 74 | ||||||
3 | with 'MooseX::Getopt'; | ||||||
4 | has name => (is => 'ro', isa => 'Str', required => 1); | ||||||
5 | has account => (is => 'ro', isa => 'Str', default => sub { $ENV{CPSD_AWS_ACCOUNT} }); | ||||||
6 | has update => (is => 'ro', isa => 'Bool', default => 0); | ||||||
7 | has region => (is => 'ro', isa => 'Str', default => sub { $ENV{ AWS_REGION } }); | ||||||
8 | } | ||||||
9 | |||||||
10 | 1; |