line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Alien::Web; |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
871
|
use strict; |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
21
|
|
4
|
1
|
|
|
1
|
|
3
|
use warnings; |
|
1
|
|
|
|
|
1
|
|
|
1
|
|
|
|
|
33
|
|
5
|
|
|
|
|
|
|
|
6
|
|
|
|
|
|
|
# ABSTRACT: Base class/namespace static web asset distributions on CPAN |
7
|
|
|
|
|
|
|
our $VERSION = 1.1; |
8
|
|
|
|
|
|
|
|
9
|
1
|
|
|
1
|
|
432
|
use File::ShareDir qw(dist_dir); |
|
1
|
|
|
|
|
4572
|
|
|
1
|
|
|
|
|
158
|
|
10
|
|
|
|
|
|
|
require Path::Class; |
11
|
|
|
|
|
|
|
|
12
|
|
|
|
|
|
|
sub dir { |
13
|
1
|
50
|
|
1
|
1
|
504
|
my $class = shift or die "dir() must be called as a class method"; |
14
|
|
|
|
|
|
|
|
15
|
1
|
|
|
|
|
3
|
my $dist_dir = $class->path; |
16
|
|
|
|
|
|
|
|
17
|
1
|
50
|
|
|
|
48
|
$dist_dir ? Path::Class::dir($dist_dir) : undef |
18
|
|
|
|
|
|
|
} |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
|
21
|
|
|
|
|
|
|
sub path { |
22
|
2
|
50
|
|
2
|
1
|
339
|
my $class = shift or die "dir() must be called as a class method"; |
23
|
|
|
|
|
|
|
|
24
|
2
|
50
|
|
|
|
6
|
die "Alien::Web is a base class and is not meant to be called directly" |
25
|
|
|
|
|
|
|
if($class eq 'Alien::Web'); |
26
|
|
|
|
|
|
|
|
27
|
2
|
|
|
|
|
2
|
my $dist = $class; |
28
|
2
|
|
|
|
|
7
|
$dist =~ s/\:\:/\-/g; |
29
|
|
|
|
|
|
|
|
30
|
2
|
|
|
|
|
8
|
dist_dir($dist) |
31
|
|
|
|
|
|
|
} |
32
|
|
|
|
|
|
|
|
33
|
|
|
|
|
|
|
1; |
34
|
|
|
|
|
|
|
|
35
|
|
|
|
|
|
|
__END__ |