File Coverage

blib/lib/HPC/Runner/Command/single_node.pm
Criterion Covered Total %
statement 6 13 46.1
branch n/a
condition n/a
subroutine 2 4 50.0
pod n/a
total 8 17 47.0


line stmt bran cond sub pod time code
1             package HPC::Runner::Command::single_node;
2              
3 1     1   1355 use MooseX::App::Command;
  1         3  
  1         11  
4 1     1   11798 use namespace::autoclean;
  1         3  
  1         11  
5              
6             extends 'HPC::Runner::Command';
7              
8             with 'HPC::Runner::Command::Logger::JSON';
9             with 'HPC::Runner::Command::Utils::Base';
10             with 'HPC::Runner::Command::Utils::Log';
11             with 'HPC::Runner::Command::Utils::Git';
12             with 'HPC::Runner::Command::execute_job::Utils::MCE';
13              
14             command_short_description 'Execute commands';
15             command_long_description
16             'Take the parsed files from hpcrunner.pl submit_jobs and executes the code';
17              
18             option 'batch_index_start' => (
19             is => 'rw',
20             isa => 'Num',
21             required => 0,
22             predicate => 'has_batch_index_start',
23             documentation =>
24             'Counter to tell execute_array where to start reading in the infile.'
25             . ' Omit this option in order to run in single node.'
26             );
27              
28             sub BUILD {
29 0     0     my $self = shift;
30              
31 0           $self->gen_load_plugins;
32 0           $self->job_load_plugins;
33             }
34              
35             sub execute {
36 0     0     my $self = shift;
37              
38 0           $self->git_things;
39 0           $self->single_node(1);
40 0           $self->run_mce;
41             }
42              
43             1;