| 1 | package Docker::Registry::GCE; | ||||||||||
| 2 | 1 | ▶ | use Moo; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 3 | 1 | ▶ | use Types::Standard qw/Str Maybe/; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | extends 'Docker::Registry::V2'; | |||||||||
| 5 | |||||||||||
| 6 | 1 | has region => (is => 'ro', isa => Maybe[Str], default => undef); | |||||||||
| 7 | |||||||||||
| 8 | 3 | ▶ | has '+url' => (lazy => 1, default => sub { | ||||||||
|
Subroutine
__ANON__: called CC=2 SCAR=6.9
| |||||||||||
| 9 | 3 | my $self = shift; | |||||||||
| 10 | 3 | ▶ | if (defined $self->region) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 11 | 1 | sprintf 'https://%s.gcr.io', $self->region; | |||||||||
| 12 | } else { | ||||||||||
| 13 | 2 | 'https://gcr.io'; | |||||||||
| 14 | } | ||||||||||
| 15 | 1 | }); | |||||||||
| 16 | |||||||||||
| 17 | 1 | 1; | |||||||||