BioSAILs
view release on metacpan or search on metacpan
lib/BioSAILs/Utils/Plugin.pm view on Meta::CPAN
package BioSAILs::Utils::Plugin;
use MooseX::App::Role;
use namespace::autoclean;
use IO::File;
use File::Path qw(make_path remove_tree);
use IPC::Cmd;
use Cwd qw(getcwd);
use Try::Tiny;
use List::Util qw(uniq);
with 'MooseX::Object::Pluggable';
=head1 HPC::Runner::Command::Utils::Plugin
Take care of all file operations
=cut
=head2 Attributes
=cut
=head3 plugins
Load plugins that are used both by the submitter and executor such as logging pluggins
=cut
option 'plugins' => (
traits => ['Array'],
is => 'rw',
isa => 'ArrayRef[Str]',
documentation => 'Load aplication plugins',
cmd_split => qr/,/,
required => 0,
default => sub { [] },
handles => {
has_plugins => 'count',
join_plugins => 'join',
},
);
option 'plugins_opts' => (
is => 'rw',
isa => 'HashRef',
documentation => 'Options for application plugins',
required => 0,
default => sub { {} },
);
=head2 Subroutines
=cut
=head3 gen_load_plugins
=cut
sub gen_load_plugins {
my $self = shift;
( run in 0.680 second using v1.01-cache-2.11-cpan-39bf76dae61 )