| 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; |