| 1 | package Tapper::Installer; | ||||||||||
| 2 | # git description: v5.0.2-1-gb2e7a2e | ||||||||||
| 3 | |||||||||||
| 4 | 24 | our $AUTHORITY = 'cpan:TAPPER'; | |||||||||
| 5 | # ABSTRACT: Tapper - Install everything needed for a test | ||||||||||
| 6 | 24 | $Tapper::Installer::VERSION = '5.0.3'; | |||||||||
| 7 | 24 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 24 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 24 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | 24 | ▶ | use Socket; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 12 | 24 | ▶ | use URI::Escape "uri_escape"; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 13 | |||||||||||
| 14 | 24 | extends 'Tapper::Base'; | |||||||||
| 15 | 24 | with 'MooseX::Log::Log4perl'; | |||||||||
| 16 | |||||||||||
| 17 | has cfg => (is => 'rw', | ||||||||||
| 18 | 31 | ▶ | default => sub { {} }, | ||||||||
|
Subroutine
__ANON__: called CC=1 SCAR=0.0
| |||||||||||
| 19 | 24 | ); | |||||||||
| 20 | 24 | with 'Tapper::Remote::Net'; | |||||||||
| 21 | |||||||||||
| 22 | |||||||||||
| 23 | sub BUILD | ||||||||||
| 24 | 31 | ▶ | { | ||||||||
|
Subroutine
BUILD: called CC=1 SCAR=0.0
Pod
documented
| |||||||||||
| 25 | 31 | my ($self, $config) = @_; | |||||||||
| 26 | 31 | $self->{cfg}=$config; | |||||||||
| 27 | } | ||||||||||
| 28 | |||||||||||
| 29 | |||||||||||
| 30 | sub logdie | ||||||||||
| 31 | 0 | ▶ | { | ||||||||
|
Subroutine
logdie: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 32 | 0 | my ($self, $msg) = @_; | |||||||||
| 33 | 0 | ▶ | if ($self->cfg->{mcp_host}) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 34 | 0 | $self->mcp_send({state => 'error-install', error => $msg}); | |||||||||
| 35 | } else { | ||||||||||
| 36 | 0 | $self->log->error("Can't inform MCP, no server is set"); | |||||||||
| 37 | } | ||||||||||
| 38 | 0 | die $msg; | |||||||||
| 39 | } | ||||||||||
| 40 | |||||||||||
| 41 | 24 | 1; | |||||||||
| 42 | |||||||||||
| 43 | __END__ | ||||||||||