File Coverage

blib/lib/Dist/Zilla/MintingProfile/Author/Plicease.pm
Criterion Covered Total %
statement 17 17 100.0
branch n/a
condition n/a
subroutine 6 6 100.0
pod n/a
total 23 23 100.0


line stmt bran cond sub pod time code
1             package Dist::Zilla::MintingProfile::Author::Plicease 2.39 {
2              
3 1     1   6422 use 5.014;
  1         4  
4 1     1   582 use Moose;
  1         472152  
  1         7  
5             with qw( Dist::Zilla::Role::MintingProfile );
6 1     1   8599 use namespace::autoclean;
  1         8388  
  1         5  
7 1     1   560 use File::ShareDir::Dist ();
  1         960  
  1         24  
8 1     1   814 use Path::Tiny ();
  1         11448  
  1         25  
9 1     1   8 use Carp ();
  1         2  
  1         113  
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.39
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