File tree Expand file tree Collapse file tree 16 files changed +82
-62
lines changed
lib/BioX/Workflow/Command
t/lib/TestsFor/BioX/Workflow/Command Expand file tree Collapse file tree 16 files changed +82
-62
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ use File::Copy;
77
88extends ' BioX::Workflow::Command' ;
99use BioX::Workflow::Command::Utils::Traits qw( ArrayRefOfStrs) ;
10- use BioX::Workflow::Command::run::Utils ::Directives;
10+ use BioX::Workflow::Command::run::Rules ::Directives;
1111
1212with ' BioX::Workflow::Command::run::Utils::Samples' ;
1313with ' BioX::Workflow::Command::run::Utils::Attributes' ;
Original file line number Diff line number Diff line change 1- package BioX::Workflow::Command::run::Utils ::Directives ;
1+ package BioX::Workflow::Command::run::Rules ::Directives ;
22
33use Moose;
4+ use namespace::autoclean;
5+
6+ with ' BioX::Workflow::Command::run::Rules::Directives::Types::HPC' ;
47
58use BioX::Workflow::Command::Utils::Traits qw( ArrayRefOfStrs) ;
69use MooseX::Types::Path::Tiny qw/ Path Paths AbsPath AbsFile/ ;
@@ -14,18 +17,10 @@ use Scalar::Util 'blessed';
1417use Try::Tiny;
1518use Safe;
1619use Storable qw( dclone) ;
17-
1820# use File::Basename;
1921use File::Spec;
20-
21- use Moose::Util::TypeConstraints;
22- class_type ' Path' ;
23- class_type ' Paths' ;
24-
2522use Memoize;
2623
27- use namespace::autoclean;
28-
2924our $c = new Safe;
3025
3126=head2 File Options
@@ -443,6 +438,7 @@ sub create_attr {
443438 elsif ($self -> can($k )){
444439 next ;
445440 }
441+ # #TODO Clean this up for Types
446442 elsif ( $k =~ m / _list/ ) {
447443 $self -> create_ITERABLE_attr( $meta , $k );
448444 }
@@ -661,6 +657,7 @@ sub my_broken {
661657EOF
662658}
663659
660+ # #TODO Register Types
664661sub walk_process_data {
665662 my $self = shift ;
666663 my $keys = shift ;
@@ -778,4 +775,5 @@ after 'BUILD' => sub {
778775no Moose;
779776__PACKAGE__ -> meta-> make_immutable;
780777
778+
7817791;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types ;
4+
5+ 1;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types::Array ;
4+
5+ 1;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types::CSV ;
4+
5+ 1;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types::Config ;
4+
5+ 1;
Original file line number Diff line number Diff line change 1+ package BioX::Workflow::Command::run::Rules::Directives::Types::HPC ;
2+
3+ use Moose::Role;
4+
5+ has ' HPC' => (
6+ is => ' rw' ,
7+ isa => ' HashRef|ArrayRef' ,
8+ default => sub { {} }
9+ );
10+
11+ 1;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types::Hash ;
4+
5+ 1;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types::List ;
4+
5+ 1;
Original file line number Diff line number Diff line change 1+ use strict;
2+ use warnings;
3+ package BioX::Workflow::Command::run::Rules::Directives::Types::Path ;
4+
5+ 1;
You can’t perform that action at this time.
0 commit comments