File Coverage

lib/Dist/Zilla/Util/RoleDB/Entry/Phase.pm
Criterion Covered Total %
statement 13 15 86.6
branch n/a
condition n/a
subroutine 5 5 100.0
pod n/a
total 18 20 90.0


line stmt bran cond sub pod time code
1 1     1   775 use 5.008; # utf8
  1         3  
  1         34  
2 1     1   4 use strict;
  1         1  
  1         31  
3 1     1   11 use warnings;
  1         1  
  1         28  
4 1     1   541 use utf8;
  1         10  
  1         3  
5              
6             package Dist::Zilla::Util::RoleDB::Entry::Phase;
7              
8             our $VERSION = '0.003001';
9              
10             # ABSTRACT: Extracted meta-data about a role that represents a phase
11              
12             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
13              
14 1     1   243 use Moose qw( has extends );
  0            
  0            
15              
16             extends 'Dist::Zilla::Util::RoleDB::Entry';
17              
18              
19              
20              
21              
22              
23              
24             sub is_phase {
25             return 1;
26             }
27              
28              
29              
30              
31              
32              
33              
34             has phase_method => (
35             isa => 'Str' =>,
36             is => ro =>,
37             required => 1,
38             documentation => q[The method dzil calls on the phase],
39             );
40              
41             no Moose;
42             __PACKAGE__->meta->make_immutable;
43             1;
44              
45             __END__
46              
47             =pod
48              
49             =encoding UTF-8
50              
51             =head1 NAME
52              
53             Dist::Zilla::Util::RoleDB::Entry::Phase - Extracted meta-data about a role that represents a phase
54              
55             =head1 VERSION
56              
57             version 0.003001
58              
59             =head1 METHODS
60              
61             =head2 C<is_phase>
62              
63             Returns true.
64              
65             =head1 ATTRIBUTES
66              
67             =head2 C<phase_method>
68              
69             Returns the method C<Dist::Zilla> calls to implement this phase
70              
71             =head1 AUTHOR
72              
73             Kent Fredric <kentnl@cpan.org>
74              
75             =head1 COPYRIGHT AND LICENSE
76              
77             This software is copyright (c) 2015 by Kent Fredric <kentfredric@gmail.com>.
78              
79             This is free software; you can redistribute it and/or modify it under
80             the same terms as the Perl 5 programming language system itself.
81              
82             =cut