line |
stmt |
bran |
cond |
sub |
pod |
time |
code |
1
|
|
|
|
|
|
|
package Dist::Zilla::MintingProfile::Author::Plicease 2.41 { |
2
|
|
|
|
|
|
|
|
3
|
1
|
|
|
1
|
|
5038
|
use 5.014; |
|
1
|
|
|
|
|
3
|
|
4
|
1
|
|
|
1
|
|
421
|
use Moose; |
|
1
|
|
|
|
|
370933
|
|
|
1
|
|
|
|
|
8
|
|
5
|
|
|
|
|
|
|
with qw( Dist::Zilla::Role::MintingProfile ); |
6
|
1
|
|
|
1
|
|
6293
|
use namespace::autoclean; |
|
1
|
|
|
|
|
6474
|
|
|
1
|
|
|
|
|
4
|
|
7
|
1
|
|
|
1
|
|
394
|
use File::ShareDir::Dist (); |
|
1
|
|
|
|
|
712
|
|
|
1
|
|
|
|
|
18
|
|
8
|
1
|
|
|
1
|
|
609
|
use Path::Tiny (); |
|
1
|
|
|
|
|
8697
|
|
|
1
|
|
|
|
|
19
|
|
9
|
1
|
|
|
1
|
|
5
|
use Carp (); |
|
1
|
|
|
|
|
2
|
|
|
1
|
|
|
|
|
122
|
|
10
|
|
|
|
|
|
|
|
11
|
|
|
|
|
|
|
# ABSTRACT: Minting profile for Plicease |
12
|
|
|
|
|
|
|
|
13
|
|
|
|
|
|
|
|
14
|
|
|
|
|
|
|
sub profile_dir |
15
|
|
|
|
|
|
|
{ |
16
|
|
|
|
|
|
|
my($self, $profile_name) = @_; |
17
|
|
|
|
|
|
|
|
18
|
|
|
|
|
|
|
# use a dist share instead of a class share |
19
|
|
|
|
|
|
|
|
20
|
|
|
|
|
|
|
my $dir1 = Path::Tiny->new( File::ShareDir::Dist::dist_share( 'Dist-Zilla-Plugin-Author-Plicease' ) ); |
21
|
|
|
|
|
|
|
|
22
|
|
|
|
|
|
|
my $dir2 = defined $profile_name |
23
|
|
|
|
|
|
|
? $dir1->child("profiles/$profile_name") |
24
|
|
|
|
|
|
|
: $dir1->child("profiles"); |
25
|
|
|
|
|
|
|
|
26
|
|
|
|
|
|
|
return $dir2 if -d $dir2; |
27
|
|
|
|
|
|
|
|
28
|
|
|
|
|
|
|
Carp::confess "Can't find profile $profile_name via $self"; |
29
|
|
|
|
|
|
|
} |
30
|
|
|
|
|
|
|
|
31
|
|
|
|
|
|
|
__PACKAGE__->meta->make_immutable; |
32
|
|
|
|
|
|
|
} |
33
|
|
|
|
|
|
|
|
34
|
|
|
|
|
|
|
1; |
35
|
|
|
|
|
|
|
|
36
|
|
|
|
|
|
|
__END__ |
37
|
|
|
|
|
|
|
|
38
|
|
|
|
|
|
|
=pod |
39
|
|
|
|
|
|
|
|
40
|
|
|
|
|
|
|
=encoding UTF-8 |
41
|
|
|
|
|
|
|
|
42
|
|
|
|
|
|
|
=head1 NAME |
43
|
|
|
|
|
|
|
|
44
|
|
|
|
|
|
|
Dist::Zilla::MintingProfile::Author::Plicease - Minting profile for Plicease |
45
|
|
|
|
|
|
|
|
46
|
|
|
|
|
|
|
=head1 VERSION |
47
|
|
|
|
|
|
|
|
48
|
|
|
|
|
|
|
version 2.41 |
49
|
|
|
|
|
|
|
|
50
|
|
|
|
|
|
|
=head1 SYNOPSIS |
51
|
|
|
|
|
|
|
|
52
|
|
|
|
|
|
|
dzil new -P Author::Plicease Module::Name |
53
|
|
|
|
|
|
|
|
54
|
|
|
|
|
|
|
=head1 DESCRIPTION |
55
|
|
|
|
|
|
|
|
56
|
|
|
|
|
|
|
This is the normal minting profile used by Plicease. |
57
|
|
|
|
|
|
|
|
58
|
|
|
|
|
|
|
=head1 AUTHOR |
59
|
|
|
|
|
|
|
|
60
|
|
|
|
|
|
|
Graham Ollis <plicease@cpan.org> |
61
|
|
|
|
|
|
|
|
62
|
|
|
|
|
|
|
=head1 COPYRIGHT AND LICENSE |
63
|
|
|
|
|
|
|
|
64
|
|
|
|
|
|
|
This software is copyright (c) 2017 by Graham Ollis. |
65
|
|
|
|
|
|
|
|
66
|
|
|
|
|
|
|
This is free software; you can redistribute it and/or modify it under |
67
|
|
|
|
|
|
|
the same terms as the Perl 5 programming language system itself. |
68
|
|
|
|
|
|
|
|
69
|
|
|
|
|
|
|
=cut |