File Coverage

blib/lib/Dist/Zilla/MintingProfile/Iller/CSSON.pm
Criterion Covered Total %
statement 23 23 100.0
branch n/a
condition n/a
subroutine 8 8 100.0
pod n/a
total 31 31 100.0


line stmt bran cond sub pod time code
1 1     1   105001 use 5.14.0;
  1         13  
2 1     1   6 use strict;
  1         4  
  1         22  
3 1     1   4 use warnings;
  1         2  
  1         60  
4              
5             package Dist::Zilla::MintingProfile::Iller::CSSON;
6              
7             # ABSTRACT: Minting profile
8             our $AUTHORITY = 'cpan:CSSON'; # AUTHORITY
9             our $VERSION = '0.0102';
10              
11 1     1   585 use Moose;
  1         494378  
  1         8  
12             with 'Dist::Zilla::Role::MintingProfile';
13 1     1   8567 use File::ShareDir;
  1         23216  
  1         50  
14 1     1   484 use Path::Class;
  1         40431  
  1         95  
15 1     1   11 use Carp;
  1         3  
  1         58  
16 1     1   545 use namespace::autoclean;
  1         8449  
  1         4  
17              
18             sub profile_dir {
19             my $self = shift;
20             my $profile_name = shift;
21              
22             my $dist_name = 'Dist-Zilla-MintingProfile-Iller-CSSON';
23             my $profile_dir = dir(File::ShareDir::dist_dir($dist_name))->subdir($profile_name);
24              
25             return $profile_dir if -d $profile_dir;
26              
27             confess "Can't find profile $profile_name in $profile_dir";
28             }
29              
30             __PACKAGE__->meta->make_immutable;
31              
32             1;
33              
34             __END__
35              
36             =pod
37              
38             =encoding UTF-8
39              
40             =head1 NAME
41              
42             Dist::Zilla::MintingProfile::Iller::CSSON - Minting profile
43              
44              
45              
46             =begin html
47              
48             <p>
49             <img src="https://img.shields.io/badge/perl-5.14+-blue.svg" alt="Requires Perl 5.14+" />
50             <img src="https://img.shields.io/badge/coverage-100.0%25-brightgreen.svg" alt="coverage 100.0%" />
51             <a href="https://github.com/Csson/p5-Dist-Zilla-MintingProfile-Iller-CSSON/actions?query=workflow%3Amakefile-test"><img src="https://img.shields.io/github/workflow/status/Csson/p5-Dist-Zilla-MintingProfile-Iller-CSSON/makefile-test" alt="Build status at Github" /></a>
52             </p>
53              
54             =end html
55              
56             =head1 VERSION
57              
58             Version 0.0102, released 2020-12-28.
59              
60             =head1 SYNOPSIS
61              
62             dzil new -P Iller::CSSON New::Module
63              
64             =head1 DESCRIPTION
65              
66             This mints a new distribution prepared for L<Dist::Zilla> via L<Dist::Iller> and L<Dist::Iller::Config::Author::CSSON>.
67              
68             =head1 SOURCE
69              
70             L<https://github.com/Csson/p5-Dist-Zilla-MintingProfile-Iller-CSSON>
71              
72             =head1 HOMEPAGE
73              
74             L<https://metacpan.org/release/Dist-Zilla-MintingProfile-Iller-CSSON>
75              
76             =head1 AUTHOR
77              
78             Erik Carlsson <info@code301.com>
79              
80             =head1 COPYRIGHT AND LICENSE
81              
82             This software is copyright (c) 2016 by Erik Carlsson.
83              
84             This is free software; you can redistribute it and/or modify it under
85             the same terms as the Perl 5 programming language system itself.
86              
87             =cut