« lib/BioX/Workflow/Command/run/Rules/Directives/Types/Array.pm
↑ Summary
lib/BioX/Workflow/Command/add.pm »
| 1 | package BioX::Workflow::Command::run::Rules::Directives::Types::Glob; | ||||||||||
| 2 | |||||||||||
| 3 | 1 | ▶ | use Moose::Role; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use namespace::autoclean; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use File::Glob; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | |||||||||||
| 8 | 0 | ▶ | after 'BUILD' => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 9 | 0 | my $self = shift; | |||||||||
| 10 | |||||||||||
| 11 | 0 | $self->set_register_types( | |||||||||
| 12 | 'glob', | ||||||||||
| 13 | { | ||||||||||
| 14 | builder => 'create_reg_attr', | ||||||||||
| 15 | lookup => ['.*_glob$'] | ||||||||||
| 16 | } | ||||||||||
| 17 | ); | ||||||||||
| 18 | |||||||||||
| 19 | 0 | $self->set_register_process_directives( 'glob', | |||||||||
| 20 | { builder => 'process_directive_glob', lookup => ['.*_glob$'] } ); | ||||||||||
| 21 | 1 | }; | |||||||||
| 22 | |||||||||||
| 23 | 0 | ▶ | sub process_directive_glob { | ||||||||
|
Subroutine
process_directive_glob: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||
| 24 | 0 | my $self = shift; | |||||||||
| 25 | 0 | my $k = shift; | |||||||||
| 26 | 0 | my $v = shift; | |||||||||
| 27 | |||||||||||
| 28 | 0 | ▶ | return if $k eq 'sample_glob'; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 29 | |||||||||||
| 30 | 0 | my $text = $self->interpol_directive($v); | |||||||||
| 31 | 0 | my @data = glob($text); | |||||||||
| 32 | 0 | $self->$k( \@data ); | |||||||||
| 33 | } | ||||||||||
| 34 | |||||||||||
| 35 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 36 | |||||||||||
| 37 | 1 | 1; | |||||||||