| 1 | package XT::Files::Plugin::Excludes; | ||||||||||
| 2 | |||||||||||
| 3 | 7 | ▶ | use 5.006; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 7 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | 7 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 6 | |||||||||||
| 7 | 7 | our $VERSION = '0.001'; | |||||||||
| 8 | |||||||||||
| 9 | 7 | ▶ | use parent 'XT::Files::Plugin'; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 10 | |||||||||||
| 11 | sub run { | ||||||||||
| 12 | 8 | ▶ | my ( $self, $args ) = @_; | ||||||||
|
Subroutine
run: called CC=3 SCAR=11.0
Pod
documented
| |||||||||||
| 13 | |||||||||||
| 14 | 8 | my $xtf = $self->xtf; | |||||||||
| 15 | |||||||||||
| 16 | ARG: | ||||||||||
| 17 | 8 | for my $arg ( @{$args} ) { | |||||||||
| 18 | 18 | my ( $key, $value ) = @{$arg}; | |||||||||
| 19 | |||||||||||
| 20 | 18 | ▶ | if ( $key eq 'exclude' ) { | ||||||||
|
Branch: 1 branch
| |||||||||||
| 21 | 17 | $xtf->exclude($value); | |||||||||
| 22 | 17 | next ARG; | |||||||||
| 23 | } | ||||||||||
| 24 | |||||||||||
| 25 | 1 | $self->log_fatal("Invalid configuration option '$key = $value' for plugin 'Excludes'"); | |||||||||
| 26 | } | ||||||||||
| 27 | |||||||||||
| 28 | 7 | return; | |||||||||
| 29 | } | ||||||||||
| 30 | |||||||||||
| 31 | 7 | 1; | |||||||||
| 32 | |||||||||||
| 33 | __END__ | ||||||||||