| 1 | package VM::EC2::ParmParser; | ||||||||||||||||||||||||||||||||||||||||||
| 2 | |||||||||||||||||||||||||||||||||||||||||||
| 3 | 7 | ▶ | use strict; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 4 | 7 | ▶ | use VM::EC2 ''; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 5 | |||||||||||||||||||||||||||||||||||||||||||
| 6 | =head1 NAME | ||||||||||||||||||||||||||||||||||||||||||
| 7 | |||||||||||||||||||||||||||||||||||||||||||
| 8 | VM::EC2::ParmParser - Format parameters for passing to the API | ||||||||||||||||||||||||||||||||||||||||||
| 9 | |||||||||||||||||||||||||||||||||||||||||||
| 10 | =head1 SYNOPSIS | ||||||||||||||||||||||||||||||||||||||||||
| 11 | |||||||||||||||||||||||||||||||||||||||||||
| 12 | =head1 METHODS | ||||||||||||||||||||||||||||||||||||||||||
| 13 | |||||||||||||||||||||||||||||||||||||||||||
| 14 | =cut | ||||||||||||||||||||||||||||||||||||||||||
| 15 | |||||||||||||||||||||||||||||||||||||||||||
| 16 | 7 | ▶ | use Carp 'croak'; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 17 | 7 | ▶ | use MIME::Base64 qw(encode_base64 decode_base64); | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||||||||||||||||||||||||||||||||||
| 18 | |||||||||||||||||||||||||||||||||||||||||||
| 19 | 0 | ▶ | sub new { return bless {},ref $_[0] || $_[0] } | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
new: not called CC=2 SCAR=17.9
Pod
undocumented
Condition0%0/3
ref $_[0] || $_[0]
MC/DC0%0/2
ref $_[0] || $_[0]
ref $_[0]
$_[0]
Truth table0%0/3
A || B
A= ref $_[0]B= $_[0]
| |||||||||||||||||||||||||||||||||||||||||||
| 20 | |||||||||||||||||||||||||||||||||||||||||||
| 21 | sub format_parms { | ||||||||||||||||||||||||||||||||||||||||||
| 22 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
format_parms: not called CC=8 SCAR=42.8
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 23 | 0 | my ($args,$spec) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 24 | |||||||||||||||||||||||||||||||||||||||||||
| 25 | 0 | my @param; | |||||||||||||||||||||||||||||||||||||||||
| 26 | 0 | for my $format (keys %$spec) { | |||||||||||||||||||||||||||||||||||||||||
| 27 | 0 | my ($prefix,$parser); | |||||||||||||||||||||||||||||||||||||||||
| 28 | |||||||||||||||||||||||||||||||||||||||||||
| 29 | 0 | ▶ | if ((my ($p,$f) = split(/\./,$format))==2) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 30 | 0 | $parser = $f; | |||||||||||||||||||||||||||||||||||||||||
| 31 | 0 | $prefix = $p; | |||||||||||||||||||||||||||||||||||||||||
| 32 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 33 | 0 | $parser = $format; | |||||||||||||||||||||||||||||||||||||||||
| 34 | } | ||||||||||||||||||||||||||||||||||||||||||
| 35 | |||||||||||||||||||||||||||||||||||||||||||
| 36 | 0 | ▶ | croak "Invalid parameter formatting method '$parser'" unless $self->can($parser); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 37 | 0 | ▶ | my @argkeys = ref $spec->{$format} eq 'ARRAY' ? @{$spec->{$format}} : $spec->{$format}; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 38 | my @p = map { | ||||||||||||||||||||||||||||||||||||||||||
| 39 | 0 | my $canonical = VM::EC2->canonicalize($_); | |||||||||||||||||||||||||||||||||||||||||
| 40 | 0 | ▶ | exists $args->{$canonical} ? $self->$parser($_,$args->{$canonical}) : () | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 41 | } @argkeys; | ||||||||||||||||||||||||||||||||||||||||||
| 42 | 0 | ▶ | if ($prefix) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 43 | 0 | ▶ | for (my $i=0;$i<@p;$i+=2) { $p[$i] = "$prefix.$p[$i]" } | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 44 | } | ||||||||||||||||||||||||||||||||||||||||||
| 45 | 0 | push @param,@p; | |||||||||||||||||||||||||||||||||||||||||
| 46 | } | ||||||||||||||||||||||||||||||||||||||||||
| 47 | 0 | return @param; | |||||||||||||||||||||||||||||||||||||||||
| 48 | } | ||||||||||||||||||||||||||||||||||||||||||
| 49 | |||||||||||||||||||||||||||||||||||||||||||
| 50 | sub simple_arglist { | ||||||||||||||||||||||||||||||||||||||||||
| 51 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
simple_arglist: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 52 | 0 | my ($parameter_name,@args) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 53 | 0 | my %args = VM::EC2::ParmParser->args(VM::EC2->canonicalize($parameter_name) => @args); | |||||||||||||||||||||||||||||||||||||||||
| 54 | 0 | my ($async,@param) = VM::EC2::ParmParser->format_parms(\%args,{list_parm => $parameter_name}); | |||||||||||||||||||||||||||||||||||||||||
| 55 | 0 | return ($async,@param); | |||||||||||||||||||||||||||||||||||||||||
| 56 | } | ||||||||||||||||||||||||||||||||||||||||||
| 57 | |||||||||||||||||||||||||||||||||||||||||||
| 58 | sub args { | ||||||||||||||||||||||||||||||||||||||||||
| 59 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
args: not called CC=9 SCAR=45.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 60 | 0 | my $default_param_name = shift; | |||||||||||||||||||||||||||||||||||||||||
| 61 | 0 | ▶ | return unless @_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 62 | 0 | my @args = @_; | |||||||||||||||||||||||||||||||||||||||||
| 63 | |||||||||||||||||||||||||||||||||||||||||||
| 64 | 0 | ▶ | if ($args[0] =~ /^-/) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 65 | 0 | ▶ | for (my $i=0;$i<@_;$i+=2) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 66 | 0 | ▶ | $args[$i] = VM::EC2->canonicalize($args[$i]) if $args[$i]=~/^-?[A-Z]/; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 67 | } | ||||||||||||||||||||||||||||||||||||||||||
| 68 | return @args | ||||||||||||||||||||||||||||||||||||||||||
| 69 | 0 | } | |||||||||||||||||||||||||||||||||||||||||
| 70 | 0 | ▶ | return (-filter=>shift) if @args==1 && ref $args[0] && ref $args[0] eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/6
@args == 1 and ref $args[0] and ref $args[0] eq "HASH"
@args == 1 and ref $args[0]
MC/DC0%0/3
@args == 1 and ref $args[0] and ref $args[0] eq "HASH"
@args == 1
ref $args[0]
ref $args[0] eq "HASH"
Truth table0%0/4
A and B and C
A= @args == 1B= ref $args[0]C= ref $args[0] eq "HASH"
| |||||||||||||||||||||||||||||||||||||||||||
| 71 | 0 | ▶ | return ($default_param_name => \@args) if $default_param_name; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 72 | 0 | return @_; | |||||||||||||||||||||||||||||||||||||||||
| 73 | } | ||||||||||||||||||||||||||||||||||||||||||
| 74 | |||||||||||||||||||||||||||||||||||||||||||
| 75 | sub filter_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 76 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
filter_parm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 77 | 0 | my ($parameter_name,$values) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 78 | 0 | return $self->name_value_parm($parameter_name,$values); | |||||||||||||||||||||||||||||||||||||||||
| 79 | } | ||||||||||||||||||||||||||||||||||||||||||
| 80 | |||||||||||||||||||||||||||||||||||||||||||
| 81 | sub single_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 82 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
single_parm: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 83 | 0 | my ($argname,$val) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 84 | 0 | ▶ | return unless $val; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 85 | 0 | ▶ | my $v = ref $val && ref $val eq 'ARRAY' ? $val->[0] : $val; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $val and ref $val eq "ARRAY"
MC/DC0%0/2
ref $val and ref $val eq "ARRAY"
ref $val
ref $val eq "ARRAY"
Truth table0%0/3
A and B
A= ref $valB= ref $val eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 86 | 0 | return ($argname=>$v); | |||||||||||||||||||||||||||||||||||||||||
| 87 | } | ||||||||||||||||||||||||||||||||||||||||||
| 88 | |||||||||||||||||||||||||||||||||||||||||||
| 89 | sub list_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 90 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
list_parm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 91 | 0 | return $self->_list_parm(@_); | |||||||||||||||||||||||||||||||||||||||||
| 92 | } | ||||||||||||||||||||||||||||||||||||||||||
| 93 | |||||||||||||||||||||||||||||||||||||||||||
| 94 | sub member_list_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 95 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
member_list_parm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 96 | 0 | my ($argname,$args) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 97 | 0 | return $self->_list_parm($argname,$args,'member'); | |||||||||||||||||||||||||||||||||||||||||
| 98 | } | ||||||||||||||||||||||||||||||||||||||||||
| 99 | |||||||||||||||||||||||||||||||||||||||||||
| 100 | sub _list_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 101 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_list_parm: not called CC=7 SCAR=40.3
| |||||||||||||||||||||||||||||||||||||||||||
| 102 | 0 | my ($argname,$val,$append) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 103 | 0 | ▶ | $argname .= ".$append" if $append; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 104 | 0 | ▶ | return unless $val; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 105 | 0 | my @params; | |||||||||||||||||||||||||||||||||||||||||
| 106 | 0 | my $c = 1; | |||||||||||||||||||||||||||||||||||||||||
| 107 | 0 | ▶ | for (ref $val && ref $val eq 'ARRAY' ? @$val : $val) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $val and ref $val eq "ARRAY"
MC/DC0%0/2
ref $val and ref $val eq "ARRAY"
ref $val
ref $val eq "ARRAY"
Truth table0%0/3
A and B
A= ref $valB= ref $val eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 108 | 0 | ▶ | next unless defined $_; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 109 | 0 | push @params,("$argname.".$c++ => $_); | |||||||||||||||||||||||||||||||||||||||||
| 110 | } | ||||||||||||||||||||||||||||||||||||||||||
| 111 | 0 | return @params; | |||||||||||||||||||||||||||||||||||||||||
| 112 | } | ||||||||||||||||||||||||||||||||||||||||||
| 113 | |||||||||||||||||||||||||||||||||||||||||||
| 114 | sub value_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 115 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
value_parm: not called CC=4 SCAR=30.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 116 | 0 | my ($argname,$val) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 117 | 0 | ▶ | return unless $val; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 118 | 0 | ▶ | my $v = ref $val && ref $val eq 'ARRAY' ? $val->[0] : $val; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $val and ref $val eq "ARRAY"
MC/DC0%0/2
ref $val and ref $val eq "ARRAY"
ref $val
ref $val eq "ARRAY"
Truth table0%0/3
A and B
A= ref $valB= ref $val eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 119 | 0 | return ("$argname.Value"=>$v); | |||||||||||||||||||||||||||||||||||||||||
| 120 | } | ||||||||||||||||||||||||||||||||||||||||||
| 121 | |||||||||||||||||||||||||||||||||||||||||||
| 122 | sub name_value_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 123 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
name_value_parm: not called CC=13 SCAR=52.0
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 124 | 0 | my ($parameter_name,$values,$skip_undef_values) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 125 | |||||||||||||||||||||||||||||||||||||||||||
| 126 | 0 | my @params; | |||||||||||||||||||||||||||||||||||||||||
| 127 | 0 | my $c = 1; | |||||||||||||||||||||||||||||||||||||||||
| 128 | 0 | ▶ | if (ref $values && ref $values eq 'HASH') { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $values and ref $values eq "HASH"
MC/DC0%0/2
ref $values and ref $values eq "HASH"
ref $values
ref $values eq "HASH"
Truth table0%0/3
A and B
A= ref $valuesB= ref $values eq "HASH"
| |||||||||||||||||||||||||||||||||||||||||||
| 129 | 0 | ▶ | while (my ($name,$value) = each %$values) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 130 | 0 | push @params,("$parameter_name.$c.Name" => $name); | |||||||||||||||||||||||||||||||||||||||||
| 131 | 0 | ▶ | if (ref $value && ref $value eq 'ARRAY') { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $value and ref $value eq "ARRAY"
MC/DC0%0/2
ref $value and ref $value eq "ARRAY"
ref $value
ref $value eq "ARRAY"
Truth table0%0/3
A and B
A= ref $valueB= ref $value eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 132 | 0 | ▶ | for (my $m=1;$m<=@$value;$m++) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 133 | 0 | push @params,("$parameter_name.$c.Value.$m" => $value->[$m-1]) | |||||||||||||||||||||||||||||||||||||||||
| 134 | } | ||||||||||||||||||||||||||||||||||||||||||
| 135 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 136 | 0 | ▶ | push @params,("$parameter_name.$c.Value" => $value) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not defined $value and $skip_undef_values
MC/DC0%0/2
not defined $value and $skip_undef_values
not defined $value
$skip_undef_values
Truth table0%0/3
not(A) and B
A= not defined $valueB= $skip_undef_values
| |||||||||||||||||||||||||||||||||||||||||||
| 137 | unless !defined $value && $skip_undef_values; | ||||||||||||||||||||||||||||||||||||||||||
| 138 | } | ||||||||||||||||||||||||||||||||||||||||||
| 139 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 140 | } | ||||||||||||||||||||||||||||||||||||||||||
| 141 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 142 | 0 | ▶ | for (ref $values ? @$values : $values) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 143 | 0 | my ($name,$value) = /([^=]+)\s*=\s*(.+)/; | |||||||||||||||||||||||||||||||||||||||||
| 144 | 0 | push @params,("$parameter_name.$c.Name" => $name); | |||||||||||||||||||||||||||||||||||||||||
| 145 | 0 | ▶ | push @params,("$parameter_name.$c.Value" => $value) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not defined $value and $skip_undef_values
MC/DC0%0/2
not defined $value and $skip_undef_values
not defined $value
$skip_undef_values
Truth table0%0/3
not(A) and B
A= not defined $valueB= $skip_undef_values
| |||||||||||||||||||||||||||||||||||||||||||
| 146 | unless !defined $value && $skip_undef_values; | ||||||||||||||||||||||||||||||||||||||||||
| 147 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 148 | } | ||||||||||||||||||||||||||||||||||||||||||
| 149 | } | ||||||||||||||||||||||||||||||||||||||||||
| 150 | |||||||||||||||||||||||||||||||||||||||||||
| 151 | 0 | return @params; | |||||||||||||||||||||||||||||||||||||||||
| 152 | } | ||||||||||||||||||||||||||||||||||||||||||
| 153 | |||||||||||||||||||||||||||||||||||||||||||
| 154 | sub base64_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 155 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
base64_parm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 156 | 0 | my ($argname,$val) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 157 | 0 | return ($argname => encode_base64($val)); | |||||||||||||||||||||||||||||||||||||||||
| 158 | } | ||||||||||||||||||||||||||||||||||||||||||
| 159 | |||||||||||||||||||||||||||||||||||||||||||
| 160 | sub block_device_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 161 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
block_device_parm: not called CC=18 SCAR=58.3
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 162 | 0 | my ($argname,$devlist) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 163 | 0 | ▶ | my @dev = ref $devlist && ref $devlist eq 'ARRAY' ? @$devlist : $devlist; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $devlist and ref $devlist eq "ARRAY"
MC/DC0%0/2
ref $devlist and ref $devlist eq "ARRAY"
ref $devlist
ref $devlist eq "ARRAY"
Truth table0%0/3
A and B
A= ref $devlistB= ref $devlist eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 164 | |||||||||||||||||||||||||||||||||||||||||||
| 165 | 0 | my @p; | |||||||||||||||||||||||||||||||||||||||||
| 166 | 0 | my $c = 1; | |||||||||||||||||||||||||||||||||||||||||
| 167 | 0 | for my $d (@dev) { | |||||||||||||||||||||||||||||||||||||||||
| 168 | 0 | ▶ | next unless defined $d; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 169 | 0 | ▶ | $d =~ /^([^=]+)=([^=]+)$/ or croak "block device mapping must be in format /dev/sdXX=device-name"; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 170 | |||||||||||||||||||||||||||||||||||||||||||
| 171 | 0 | my ($devicename,$blockdevice) = ($1,$2); | |||||||||||||||||||||||||||||||||||||||||
| 172 | 0 | push @p,("$argname.$c.DeviceName"=>$devicename); | |||||||||||||||||||||||||||||||||||||||||
| 173 | |||||||||||||||||||||||||||||||||||||||||||
| 174 | 0 | ▶ | if ($blockdevice =~ /^vol-/) { # this is a volume, and not a snapshot | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 3 branches
| |||||||||||||||||||||||||||||||||||||||||||
| 175 | 0 | my ($volume,$delete_on_term) = split ':',$blockdevice; | |||||||||||||||||||||||||||||||||||||||||
| 176 | 0 | push @p,("$argname.$c.Ebs.VolumeId" => $volume); | |||||||||||||||||||||||||||||||||||||||||
| 177 | 0 | ▶ | push @p,("$argname.$c.Ebs.DeleteOnTermination"=>$delete_on_term) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $delete_on_term and $delete_on_term =~ /^(true|false|1|0)$/
MC/DC0%0/2
defined $delete_on_term and $delete_on_term =~ /^(true|false|1|0)$/
defined $delete_on_term
$delete_on_term =~ /^(true|false|1|0)$/
Truth table0%0/3
A and B
A= defined $delete_on_termB= $delete_on_term =~ /^(true|false|1|0)$/
| |||||||||||||||||||||||||||||||||||||||||||
| 178 | if defined $delete_on_term && $delete_on_term=~/^(true|false|1|0)$/ | ||||||||||||||||||||||||||||||||||||||||||
| 179 | } | ||||||||||||||||||||||||||||||||||||||||||
| 180 | elsif ($blockdevice eq 'none') { | ||||||||||||||||||||||||||||||||||||||||||
| 181 | 0 | push @p,("$argname.$c.NoDevice" => ''); | |||||||||||||||||||||||||||||||||||||||||
| 182 | } elsif ($blockdevice =~ /^ephemeral\d$/) { | ||||||||||||||||||||||||||||||||||||||||||
| 183 | 0 | push @p,("$argname.$c.VirtualName"=>$blockdevice); | |||||||||||||||||||||||||||||||||||||||||
| 184 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 185 | 0 | my ($snapshot,$size,$delete_on_term,$vtype,$iops) = split ':',$blockdevice; | |||||||||||||||||||||||||||||||||||||||||
| 186 | |||||||||||||||||||||||||||||||||||||||||||
| 187 | # Workaround for apparent bug in 2012-12-01 API; instances will crash without volume size | ||||||||||||||||||||||||||||||||||||||||||
| 188 | # even if a snapshot ID is provided | ||||||||||||||||||||||||||||||||||||||||||
| 189 | 0 | ▶ | if ($snapshot) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 190 | 0 | ▶ | $size ||= eval{$self->describe_snapshots($snapshot)->volumeSize}; | ||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$size ||= eval {
do {
$self->describe_snapshots($snapshot)->volumeSize
}
}
MC/DC0%0/2
$size ||= eval {
do {
$self->describe_snapshots($snapshot)->volumeSize
}
}
$size
eval {
do {
$self->describe_snapshots($snapshot)->volumeSize
}
}
Truth table0%0/3
A ||= B
A= $sizeB= eval {
do {
$self->describe_snapshots($snapshot)->volumeSize
}
}
| |||||||||||||||||||||||||||||||||||||||||||
| 191 | 0 | push @p,("$argname.$c.Ebs.SnapshotId" =>$snapshot); | |||||||||||||||||||||||||||||||||||||||||
| 192 | } | ||||||||||||||||||||||||||||||||||||||||||
| 193 | |||||||||||||||||||||||||||||||||||||||||||
| 194 | 0 | ▶ | push @p,("$argname.$c.Ebs.VolumeSize" =>$size) if $size; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 195 | 0 | ▶ | push @p,("$argname.$c.Ebs.DeleteOnTermination"=>$delete_on_term) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
defined $delete_on_term and $delete_on_term =~ /^(true|false|1|0)$/
MC/DC0%0/2
defined $delete_on_term and $delete_on_term =~ /^(true|false|1|0)$/
defined $delete_on_term
$delete_on_term =~ /^(true|false|1|0)$/
Truth table0%0/3
A and B
A= defined $delete_on_termB= $delete_on_term =~ /^(true|false|1|0)$/
| |||||||||||||||||||||||||||||||||||||||||||
| 196 | if defined $delete_on_term && $delete_on_term=~/^(true|false|1|0)$/; | ||||||||||||||||||||||||||||||||||||||||||
| 197 | 0 | ▶ | push @p,("$argname.$c.Ebs.VolumeType"=>$vtype) if $vtype; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 198 | 0 | ▶ | push @p,("$argname.$c.Ebs.Iops"=>$iops) if $iops; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 199 | } | ||||||||||||||||||||||||||||||||||||||||||
| 200 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 201 | } | ||||||||||||||||||||||||||||||||||||||||||
| 202 | 0 | return @p; | |||||||||||||||||||||||||||||||||||||||||
| 203 | } | ||||||||||||||||||||||||||||||||||||||||||
| 204 | |||||||||||||||||||||||||||||||||||||||||||
| 205 | # ['eth0=eni-123456','eth1=192.168.2.1,192.168.3.1,192.168.4.1:subnet-12345:sg-12345:true:My Weird Network'] | ||||||||||||||||||||||||||||||||||||||||||
| 206 | # form 1: ethX=network device id | ||||||||||||||||||||||||||||||||||||||||||
| 207 | # form 2: ethX=primary_address,secondary_address1,secondary_address2...:subnetId:securityGroupId:deleteOnTermination:description | ||||||||||||||||||||||||||||||||||||||||||
| 208 | # form 3: ethX=primary_address,secondary_address_count:subnetId:securityGroupId:deleteOnTermination:description | ||||||||||||||||||||||||||||||||||||||||||
| 209 | sub network_interface_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 210 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
network_interface_parm: not called CC=16 SCAR=56.1
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 211 | 0 | my ($argname,$devlist) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 212 | 0 | ▶ | my @dev = ref $devlist && ref $devlist eq 'ARRAY' ? @$devlist : $devlist; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $devlist and ref $devlist eq "ARRAY"
MC/DC0%0/2
ref $devlist and ref $devlist eq "ARRAY"
ref $devlist
ref $devlist eq "ARRAY"
Truth table0%0/3
A and B
A= ref $devlistB= ref $devlist eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 213 | |||||||||||||||||||||||||||||||||||||||||||
| 214 | 0 | my @p; | |||||||||||||||||||||||||||||||||||||||||
| 215 | 0 | my $c = 0; | |||||||||||||||||||||||||||||||||||||||||
| 216 | 0 | for my $d (@dev) { | |||||||||||||||||||||||||||||||||||||||||
| 217 | 0 | ▶ | next unless defined $d; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 218 | 0 | ▶ | $d =~ /^eth(\d+)\s*=\s*([^=]+)$/ or croak "network device mapping must be in format ethX=option-string; you passed $d"; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 219 | |||||||||||||||||||||||||||||||||||||||||||
| 220 | 0 | my ($device_index,$device_options) = ($1,$2); | |||||||||||||||||||||||||||||||||||||||||
| 221 | 0 | push @p,("$argname.$c.DeviceIndex" => $device_index); | |||||||||||||||||||||||||||||||||||||||||
| 222 | 0 | my @options = split ':',$device_options; | |||||||||||||||||||||||||||||||||||||||||
| 223 | 0 | ▶ | if (@options == 1) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 224 | 0 | push @p,("$argname.$c.NetworkDeviceId" => $options[0]); | |||||||||||||||||||||||||||||||||||||||||
| 225 | } | ||||||||||||||||||||||||||||||||||||||||||
| 226 | else { | ||||||||||||||||||||||||||||||||||||||||||
| 227 | 0 | my ($ip_addresses,$subnet_id,$security_group_id,$delete_on_termination,$description) = @options; | |||||||||||||||||||||||||||||||||||||||||
| 228 | 0 | my @addresses = split /\s*,\s*/,$ip_addresses; | |||||||||||||||||||||||||||||||||||||||||
| 229 | 0 | ▶ | for (my $a = 0; $a < @addresses; $a++) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 230 | 0 | ▶ | if ($addresses[$a] =~ /^\d+\.\d+\.\d+\.\d+$/ ) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 2 branches
| |||||||||||||||||||||||||||||||||||||||||||
| 231 | 0 | push @p,("$argname.$c.PrivateIpAddresses.$a.PrivateIpAddress" => $addresses[$a]); | |||||||||||||||||||||||||||||||||||||||||
| 232 | 0 | ▶ | push @p,("$argname.$c.PrivateIpAddresses.$a.Primary" => $a == 0 ? 'true' : 'false'); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 233 | } | ||||||||||||||||||||||||||||||||||||||||||
| 234 | ▶ | elsif ($addresses[$a] =~ /^\d+$/ && $a > 0) { | |||||||||||||||||||||||||||||||||||||||||
|
Condition0%0/3
$addresses[$a] =~ /^\d+$/ and $a > 0
MC/DC0%0/2
$addresses[$a] =~ /^\d+$/ and $a > 0
$addresses[$a] =~ /^\d+$/
$a > 0
Truth table0%0/3
A and B
A= $addresses[$a] =~ /^\d+$/B= $a > 0
| |||||||||||||||||||||||||||||||||||||||||||
| 235 | 0 | push @p,("$argname.$c.SecondaryPrivateIpAddressCount" => $addresses[$a]); | |||||||||||||||||||||||||||||||||||||||||
| 236 | } | ||||||||||||||||||||||||||||||||||||||||||
| 237 | } | ||||||||||||||||||||||||||||||||||||||||||
| 238 | 0 | my @sgs = split ',',$security_group_id; | |||||||||||||||||||||||||||||||||||||||||
| 239 | 0 | ▶ | for (my $i=0;$i<@sgs;$i++) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 240 | 0 | push @p,("$argname.$c.SecurityGroupId.$i" => $sgs[$i]); | |||||||||||||||||||||||||||||||||||||||||
| 241 | } | ||||||||||||||||||||||||||||||||||||||||||
| 242 | |||||||||||||||||||||||||||||||||||||||||||
| 243 | 0 | ▶ | push @p,("$argname.$c.SubnetId" => $subnet_id) if length $subnet_id; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 244 | 0 | ▶ | push @p,("$argname.$c.DeleteOnTermination" => $delete_on_termination) if length $delete_on_termination; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 245 | 0 | ▶ | push @p,("$argname.$c.Description" => $description) if length $description; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 246 | } | ||||||||||||||||||||||||||||||||||||||||||
| 247 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 248 | } | ||||||||||||||||||||||||||||||||||||||||||
| 249 | 0 | return @p; | |||||||||||||||||||||||||||||||||||||||||
| 250 | } | ||||||||||||||||||||||||||||||||||||||||||
| 251 | |||||||||||||||||||||||||||||||||||||||||||
| 252 | sub boolean_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 253 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
boolean_parm: not called CC=2 SCAR=17.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 254 | 0 | my ($argname,$val) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 255 | 0 | ▶ | return ($argname => $val ? 'true' : 'false'); | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 256 | } | ||||||||||||||||||||||||||||||||||||||||||
| 257 | |||||||||||||||||||||||||||||||||||||||||||
| 258 | sub key_value_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 259 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
key_value_parm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 260 | 0 | my ($parm,$values,$skip_undef_values) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 261 | 0 | return $self->_key_value_parm($parm,$values,'Key','Value',$skip_undef_values); | |||||||||||||||||||||||||||||||||||||||||
| 262 | } | ||||||||||||||||||||||||||||||||||||||||||
| 263 | |||||||||||||||||||||||||||||||||||||||||||
| 264 | sub member_key_value_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 265 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
member_key_value_parm: not called CC=1 SCAR=6.9
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 266 | 0 | my ($parm,$values,$skip_undef_values) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 267 | 0 | return $self->_key_value_parm($parm,$values,'Key','Value',$skip_undef_values,'member'); | |||||||||||||||||||||||||||||||||||||||||
| 268 | } | ||||||||||||||||||||||||||||||||||||||||||
| 269 | |||||||||||||||||||||||||||||||||||||||||||
| 270 | sub _key_value_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 271 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
_key_value_parm: not called CC=14 SCAR=53.5
| |||||||||||||||||||||||||||||||||||||||||||
| 272 | 0 | my ($parm,$values,$keyname,$valuename,$skip_undef_values,$append) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 273 | |||||||||||||||||||||||||||||||||||||||||||
| 274 | 0 | my @params; | |||||||||||||||||||||||||||||||||||||||||
| 275 | 0 | ▶ | $parm .= ".$append" if $append; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 276 | 0 | my $c = 1; | |||||||||||||||||||||||||||||||||||||||||
| 277 | 0 | ▶ | if (ref $values && ref $values eq 'HASH') { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $values and ref $values eq "HASH"
MC/DC0%0/2
ref $values and ref $values eq "HASH"
ref $values
ref $values eq "HASH"
Truth table0%0/3
A and B
A= ref $valuesB= ref $values eq "HASH"
| |||||||||||||||||||||||||||||||||||||||||||
| 278 | 0 | ▶ | while (my ($name,$value) = each %$values) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 279 | 0 | push @params,("$parm.$c.$keyname" => $name); | |||||||||||||||||||||||||||||||||||||||||
| 280 | 0 | ▶ | if (ref $value && ref $value eq 'ARRAY') { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
ref $value and ref $value eq "ARRAY"
MC/DC0%0/2
ref $value and ref $value eq "ARRAY"
ref $value
ref $value eq "ARRAY"
Truth table0%0/3
A and B
A= ref $valueB= ref $value eq "ARRAY"
| |||||||||||||||||||||||||||||||||||||||||||
| 281 | 0 | ▶ | for (my $m=1;$m<=@$value;$m++) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 282 | 0 | push @params,("$parm.$c.$valuename.$m" => $value->[$m-1]) | |||||||||||||||||||||||||||||||||||||||||
| 283 | } | ||||||||||||||||||||||||||||||||||||||||||
| 284 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 285 | 0 | ▶ | push @params,("$parm.$c.$valuename" => $value) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not defined $value and $skip_undef_values
MC/DC0%0/2
not defined $value and $skip_undef_values
not defined $value
$skip_undef_values
Truth table0%0/3
not(A) and B
A= not defined $valueB= $skip_undef_values
| |||||||||||||||||||||||||||||||||||||||||||
| 286 | unless !defined $value && $skip_undef_values; | ||||||||||||||||||||||||||||||||||||||||||
| 287 | } | ||||||||||||||||||||||||||||||||||||||||||
| 288 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 289 | } | ||||||||||||||||||||||||||||||||||||||||||
| 290 | } else { | ||||||||||||||||||||||||||||||||||||||||||
| 291 | 0 | ▶ | for (ref $values ? @$values : $values) { | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 292 | 0 | my ($name,$value) = /([^=]+)\s*=\s*(.+)/; | |||||||||||||||||||||||||||||||||||||||||
| 293 | 0 | push @params,("$parm.$c.$keyname" => $name); | |||||||||||||||||||||||||||||||||||||||||
| 294 | 0 | ▶ | push @params,("$parm.$c.$valuename" => $value) | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
Condition0%0/3
not defined $value and $skip_undef_values
MC/DC0%0/2
not defined $value and $skip_undef_values
not defined $value
$skip_undef_values
Truth table0%0/3
not(A) and B
A= not defined $valueB= $skip_undef_values
| |||||||||||||||||||||||||||||||||||||||||||
| 295 | unless !defined $value && $skip_undef_values; | ||||||||||||||||||||||||||||||||||||||||||
| 296 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 297 | } | ||||||||||||||||||||||||||||||||||||||||||
| 298 | } | ||||||||||||||||||||||||||||||||||||||||||
| 299 | 0 | return @params; | |||||||||||||||||||||||||||||||||||||||||
| 300 | } | ||||||||||||||||||||||||||||||||||||||||||
| 301 | |||||||||||||||||||||||||||||||||||||||||||
| 302 | sub member_hash_parm { | ||||||||||||||||||||||||||||||||||||||||||
| 303 | 0 | ▶ | my $self = shift; | ||||||||||||||||||||||||||||||||||||||||
|
Subroutine
member_hash_parm: not called CC=6 SCAR=37.4
Pod
undocumented
| |||||||||||||||||||||||||||||||||||||||||||
| 304 | 0 | my ($parm,$values) = @_; | |||||||||||||||||||||||||||||||||||||||||
| 305 | |||||||||||||||||||||||||||||||||||||||||||
| 306 | 0 | my @params; | |||||||||||||||||||||||||||||||||||||||||
| 307 | 0 | ▶ | $values = [ $values ] if ref $values eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 308 | 0 | ▶ | return unless ref $values eq 'ARRAY'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 309 | 0 | my $c = 1; | |||||||||||||||||||||||||||||||||||||||||
| 310 | 0 | foreach my $value (@$values) { | |||||||||||||||||||||||||||||||||||||||||
| 311 | 0 | ▶ | next unless ref $value eq 'HASH'; | ||||||||||||||||||||||||||||||||||||||||
|
Branch: 1 branch
| |||||||||||||||||||||||||||||||||||||||||||
| 312 | 0 | foreach my $key (keys %$value) { | |||||||||||||||||||||||||||||||||||||||||
| 313 | 0 | push @params, ("$parm.member.$c.$key" => $value->{$key}); | |||||||||||||||||||||||||||||||||||||||||
| 314 | } | ||||||||||||||||||||||||||||||||||||||||||
| 315 | 0 | $c++; | |||||||||||||||||||||||||||||||||||||||||
| 316 | } | ||||||||||||||||||||||||||||||||||||||||||
| 317 | 0 | return @params; | |||||||||||||||||||||||||||||||||||||||||
| 318 | } | ||||||||||||||||||||||||||||||||||||||||||
| 319 | |||||||||||||||||||||||||||||||||||||||||||
| 320 | 7 | 1; | |||||||||||||||||||||||||||||||||||||||||
| 321 | |||||||||||||||||||||||||||||||||||||||||||
| 322 | =head1 SEE ALSO | ||||||||||||||||||||||||||||||||||||||||||
| 323 | |||||||||||||||||||||||||||||||||||||||||||
| 324 | L<VM::EC2> | ||||||||||||||||||||||||||||||||||||||||||
| 325 | |||||||||||||||||||||||||||||||||||||||||||
| 326 | =head1 AUTHOR | ||||||||||||||||||||||||||||||||||||||||||
| 327 | |||||||||||||||||||||||||||||||||||||||||||
| 328 | Lincoln Stein E<lt>lincoln.stein@gmail.comE<gt>. | ||||||||||||||||||||||||||||||||||||||||||
| 329 | |||||||||||||||||||||||||||||||||||||||||||
| 330 | Copyright (c) 2013 Ontario Institute for Cancer Research | ||||||||||||||||||||||||||||||||||||||||||
| 331 | |||||||||||||||||||||||||||||||||||||||||||
| 332 | This package and its accompanying libraries is free software; you can | ||||||||||||||||||||||||||||||||||||||||||
| 333 | redistribute it and/or modify it under the terms of the GPL (either | ||||||||||||||||||||||||||||||||||||||||||
| 334 | version 1, or at your option, any later version) or the Artistic | ||||||||||||||||||||||||||||||||||||||||||
| 335 | License 2.0. Refer to LICENSE for the full license text. In addition, | ||||||||||||||||||||||||||||||||||||||||||
| 336 | please see DISCLAIMER.txt for disclaimers of warranty. | ||||||||||||||||||||||||||||||||||||||||||
| 337 | |||||||||||||||||||||||||||||||||||||||||||
| 338 | =cut | ||||||||||||||||||||||||||||||||||||||||||
| 339 | |||||||||||||||||||||||||||||||||||||||||||