Imager/CommandLine/Vagrant.pm untested

filter: Statementstmt 0.0% 0 / 14 Branchbran 0.0% 0 / 2 Conditioncond n/a MC/DCmcdc n/a Subroutinesub 0.0% 0 / 3 Podpod 0.0% 0 / 1 totaltotal 0.0% 0 / 20 CC 2 SCAR 13.9
CC
2
Cov
0%
run
6.0
BEGIN
2.0
BEGIN
2.0
CRAP 4.0
1 package Imager::CommandLine::Vagrant {
2 use MooseX::App;
3 use CloudDeploy::Utils;
4  
5 parameter ami_class => (is => 'ro', isa => 'Str', required => 1);
6  
7 sub run {
8 my ($self) = @_;
9  
10 my $module = load_class($self->ami_class);
11  
12 my $obj = $module->{class}->new;
13  
14 die "Class is not a CCfnX::MakeAMIBase" if (not $obj->isa('CCfnX::MakeAMIBase'));
15  
16 my $deployer = $obj->get_deployer({
17 # access_key => $ENV{AWS_ACCESS_KEY_ID},
18 # secret_key => $ENV{AWS_SECRET_ACCESS_KEY},
19 # account => $ENV{CPSD_AWS_ACCOUNT},
20 },'CCfnX::VagrantDeployer');
21  
22 #if ($obj->params->update) {
23 # $deployer->redeploy;
24 #} else {
25  
26 $deployer->deploy;
27  
28 #}
29 }
30 }
31  
32 1;