line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Cfn::ResourceModules; |
2
|
|
|
|
|
|
|
|
3
|
|
|
|
|
|
|
sub list { |
4
|
1
|
|
|
1
|
0
|
594
|
require Module::Find; |
5
|
1
|
|
|
|
|
1337
|
my @list = Module::Find::findallmod Cfn::Resource; |
6
|
|
|
|
|
|
|
# strip off the Cfn::Resource |
7
|
1
|
|
|
|
|
240698
|
@list = map { $_ =~ s/^Cfn::Resource:://; $_ } @list; |
|
489
|
|
|
|
|
960
|
|
|
489
|
|
|
|
|
797
|
|
8
|
1
|
|
|
|
|
68
|
return @list; |
9
|
|
|
|
|
|
|
} |
10
|
|
|
|
|
|
|
|
11
|
22
|
|
|
22
|
|
69530
|
use Module::Runtime qw//; |
|
22
|
|
|
|
|
1839
|
|
|
22
|
|
|
|
|
2153
|
|
12
|
|
|
|
|
|
|
sub load { |
13
|
2209
|
|
|
2209
|
0
|
181096
|
my $type = shift; |
14
|
2209
|
|
|
|
|
8456
|
my $cfn_resource_class = "Cfn::Resource::$type"; |
15
|
2209
|
|
|
|
|
10701
|
my $retval = Module::Runtime::require_module($cfn_resource_class); |
16
|
2209
|
50
|
|
|
|
55286
|
die "Couldn't load $cfn_resource_class" if (not $retval); |
17
|
2209
|
|
|
|
|
9695
|
return $cfn_resource_class; |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
1; |