File Coverage

blib/lib/Dist/Zilla/MintingProfile/Iller/CSSON.pm
Criterion Covered Total %
statement 7 9 77.7
branch n/a
condition n/a
subroutine 3 3 100.0
pod n/a
total 10 12 83.3


line stmt bran cond sub pod time code
1 1     1   20962 use strict;
  1         4  
  1         28  
2 1     1   6 use warnings;
  1         2  
  1         70  
3             package Dist::Zilla::MintingProfile::Iller::CSSON;
4              
5             our $VERSION = '0.0100'; # VERSION:
6             # ABSTRACT: CSSON's Dist::Zilla minting profile for Dist::Iller
7              
8 1     1   1487 use Moose;
  0            
  0            
9             with 'Dist::Zilla::Role::MintingProfile';
10             use File::ShareDir;
11             use Path::Class;
12             use Carp;
13             use namespace::autoclean;
14              
15             sub profile_dir {
16             my $self = shift;
17             my $profile_name = shift;
18              
19             my $dist_name = 'Dist-Zilla-MintingProfile-Iller-CSSON';
20             my $profile_dir = dir(File::ShareDir::dist_dir($dist_name))->subdir($profile_name);
21              
22             return $profile_dir if -d $profile_dir;
23              
24             confess "Can't find profile $profile_name in $profile_dir";
25             }
26              
27             __PACKAGE__->meta->make_immutable;
28              
29             1;
30              
31             __END__