File Coverage

blib/lib/Dist/Zilla/UtilRole/MaybeGit.pm
Criterion Covered Total %
statement 20 20 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod n/a
total 27 27 100.0


line stmt bran cond sub pod time code
1 2     2   1695 use 5.008; # utf8
  2         7  
2 2     2   12 use strict;
  2         4  
  2         64  
3 2     2   41 use warnings;
  2         4  
  2         87  
4 2     2   775 use utf8;
  2         15  
  2         19  
5              
6             package Dist::Zilla::UtilRole::MaybeGit;
7              
8             our $VERSION = '0.004002';
9              
10             # ABSTRACT: A role to make adding a ->git method easy, and low-complexity
11              
12             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
13              
14 2     2   1432 use Moose::Role qw( with has );
  2         395833  
  2         9  
15             with 'Dist::Zilla::UtilRole::MaybeZilla';
16              
17             has 'git' => ( is => ro =>, isa => Object =>, lazy_build => 1 );
18              
19             sub _build_git {
20 3     3   5 my ($self) = @_;
21 3         729 require Dist::Zilla::Util::Git::Wrapper;
22 3         67 return Dist::Zilla::Util::Git::Wrapper->new( zilla => $self->zilla );
23             }
24              
25 2     2   6529 no Moose::Role;
  2         3  
  2         7  
26             1;
27              
28             __END__
29              
30             =pod
31              
32             =encoding UTF-8
33              
34             =head1 NAME
35              
36             Dist::Zilla::UtilRole::MaybeGit - A role to make adding a ->git method easy, and low-complexity
37              
38             =head1 VERSION
39              
40             version 0.004002
41              
42             =head1 AUTHOR
43              
44             Kent Fredric <kentnl@cpan.org>
45              
46             =head1 COPYRIGHT AND LICENSE
47              
48             This software is copyright (c) 2017 by Kent Fredric <kentfredric@gmail.com>.
49              
50             This is free software; you can redistribute it and/or modify it under
51             the same terms as the Perl 5 programming language system itself.
52              
53             =cut