Repositorio/Repository/Docker.pm untested

filter: Statementstmt 0.0% 0 / 29 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 9 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 39 CC 1 SCAR 6.9
CC
1
Cov
0%
init
2.0
BEGIN
2.0
BEGIN
2.0
CRAP 2.0
1 #
2 # (c) Jan Gehring <jan.gehring@gmail.com>
3 #
4 # vim: set ts=2 sw=2 tw=0:
5 # vim: set expandtab:
6  
7 package Rex::Repositorio::Repository::Docker;
8  
9 use Moose;
10 use Try::Tiny;
11 use File::Basename qw'basename';
12 use Data::Dumper;
13 use Carp;
14 use Params::Validate qw(:all);
15 use File::Spec;
16 use File::Path 'make_path';
17  
18 our $VERSION = '1.2.1'; # VERSION
19  
20 extends "Rex::Repositorio::Repository::Base";
21  
22 sub init {
23 my $self = shift;
24  
25 my $repo_dir = $self->app->get_repo_dir( repo => $self->repo->{name} );
26 make_path "$repo_dir";
27 }
28  
29 1;