File Coverage

lib/Dist/Zilla/Util/RoleDB/Items/ThirdParty.pm
Criterion Covered Total %
statement 12 36 33.3
branch 0 2 0.0
condition n/a
subroutine 4 8 50.0
pod 1 1 100.0
total 17 47 36.1


line stmt bran cond sub pod time code
1 1     1   845 use 5.008; # utf8
  1         3  
  1         34  
2 1     1   3 use strict;
  1         2  
  1         29  
3 1     1   3 use warnings;
  1         1  
  1         27  
4 1     1   512 use utf8;
  1         9  
  1         6  
5              
6             package Dist::Zilla::Util::RoleDB::Items::ThirdParty;
7              
8             our $VERSION = '0.003001';
9              
10             # ABSTRACT: An aggregate provisioned index of third-party roles
11              
12             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
13              
14             my @items;
15              
16              
17              
18              
19              
20              
21              
22              
23              
24             sub all {
25 0 0   0 1   return @items if @items;
26 0           _add_items();
27 0           return @items;
28             }
29              
30             sub _add_entry {
31 0     0     my ( $name, $description, @extra ) = @_;
32 0           require Dist::Zilla::Util::RoleDB::Entry;
33 0           push @items, Dist::Zilla::Util::RoleDB::Entry->new( name => $name, description => $description, @extra );
34 0           return;
35             }
36              
37             sub _add_phase {
38 0     0     my ( $name, $description, $phase_method, @extra ) = @_;
39 0           require Dist::Zilla::Util::RoleDB::Entry::Phase;
40 0           push @items,
41             Dist::Zilla::Util::RoleDB::Entry::Phase->new(
42             name => $name,
43             description => $description,
44             phase_method => $phase_method,
45             @extra,
46             );
47 0           return;
48             }
49              
50             sub _add_items {
51 0     0     _add_entry( q[-Bootstrap] => q[Shared logic for bootstrap things.] );
52 0           _add_entry( q[-BundleDeps] => q[Automatically add all plugins in a bundle as dependencies] );
53 0           _add_entry( q[-Git::DirtyFiles] => q[provide the allow_dirty & changelog attributes] );
54 0           _add_entry( q[-Git::LocalRepository] => q[A plugin which works with a local git repository as its Dist::Zilla source.] );
55 0           _add_entry( q[-Git::Remote::Branch] => q[Parts to enable aggregated specification of remote branches.] );
56 0           _add_entry( q[-Git::Remote::Check] => q[Check a remote branch is not ahead of a local one] );
57 0           _add_entry( q[-Git::Remote::Update] => q[Update tracking data for a remote repository] );
58 0           _add_entry( q[-Git::Remote] => q[Git Remote specification and validation for plugins.] );
59 0           _add_entry( q[-Git::Repo] => q[Provide repository information for Git plugins] );
60 0           _add_entry( q[-MetaProvider::Provider] => q[A Role for Metadata providers specific to the 'provider' key.] );
61 0           _add_entry( q[-PluginBundle::Config::Slicer] => q[Pass Portions of Bundle Config to Plugins] );
62 0           _add_entry( q[-PluginBundle::PluginRemover] => q[Add '-remove' functionality to a bundle] );
63 0           return;
64             }
65              
66             1;
67              
68             __END__
69              
70             =pod
71              
72             =encoding UTF-8
73              
74             =head1 NAME
75              
76             Dist::Zilla::Util::RoleDB::Items::ThirdParty - An aggregate provisioned index of third-party roles
77              
78             =head1 VERSION
79              
80             version 0.003001
81              
82             =head1 METHODS
83              
84             =head2 C<all>
85              
86             Returns all items in this item set, as a list
87              
88             my @entries = $class->all();.
89              
90             =head1 AUTHOR
91              
92             Kent Fredric <kentnl@cpan.org>
93              
94             =head1 COPYRIGHT AND LICENSE
95              
96             This software is copyright (c) 2015 by Kent Fredric <kentfredric@gmail.com>.
97              
98             This is free software; you can redistribute it and/or modify it under
99             the same terms as the Perl 5 programming language system itself.
100              
101             =cut