| 1 | package Tapper::Producer; | ||||||||||
| 2 | # git description: v5.0.0-1-gd41b1d5 | ||||||||||
| 3 | |||||||||||
| 4 | 1 | our $AUTHORITY = 'cpan:TAPPER'; | |||||||||
| 5 | # ABSTRACT: Tapper - Precondition producers (base class) | ||||||||||
| 6 | 1 | $Tapper::Producer::VERSION = '5.0.1'; | |||||||||
| 7 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 8 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 9 | |||||||||||
| 10 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 11 | |||||||||||
| 12 | |||||||||||
| 13 | sub produce | ||||||||||
| 14 | 0 | ▶ | { | ||||||||
|
Subroutine
produce: not called CC=2 SCAR=17.9
Pod
documented
| |||||||||||
| 15 | 0 | my ($self, $job, $precond_hash) = @_; | |||||||||
| 16 | |||||||||||
| 17 | 0 | my $producer_name = $precond_hash->{producer}; | |||||||||
| 18 | |||||||||||
| 19 | 0 | eval "use Tapper::Producer::$producer_name"; ## no critic (ProhibitStringyEval) | |||||||||
| 20 | 0 | ▶ | die "Can not load producer '$producer_name': $@" if $@; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | |||||||||||
| 22 | 0 | my $producer = "Tapper::Producer::$producer_name"->new(); | |||||||||
| 23 | 0 | return $producer->produce($job, $precond_hash); | |||||||||
| 24 | } | ||||||||||
| 25 | |||||||||||
| 26 | 1 | 1; # End of Tapper::Producer | |||||||||
| 27 | |||||||||||
| 28 | __END__ | ||||||||||