File Coverage

blib/lib/CCfnX/MakeAMIArgs.pm
Criterion Covered Total %
statement 3 3 100.0
branch n/a
condition n/a
subroutine 1 1 100.0
pod n/a
total 4 4 100.0


line stmt bran cond sub pod time code
1             package CCfnX::MakeAMIArgs {
2 1     1   7478 use Moose;
  1         3  
  1         6  
3             extends 'CCfnX::InstanceArgs';
4             has template => (is => 'ro', isa => 'ArrayRef[Str]', required => 1);
5             has ami => (is => 'ro', isa => 'Str', required => 1, documentation => 'AMI to base the image upon. Takes it as the base AMI, and applies templates to it');
6             has os_family => (is => 'ro', isa => 'Str', default => 'linux');
7             has devel => (is => 'ro', isa => 'Bool', default => 0, documentation => 'Leaves the instance turned on after executing all templates for debugging pourposes');
8             has onlysnapshot => (is => 'ro', isa => 'Bool', default => 0, documentation => 'If the stack has been created with --devel, you can continue the process of converting the instance to AMI with this option');
9             has amitag => (is => 'ro', isa => 'Str', documentation => 'Optional: when registering this AMI, we\'ll use this tag to identify it. It should be unique for the region of deployment and the name of the AMI');
10             }
11              
12             1;