File Coverage

lib/Dist/Zilla/Util/RoleDB/Items/ThirdParty.pm
Criterion Covered Total %
statement 29 33 87.8
branch 1 2 50.0
condition n/a
subroutine 6 7 85.7
pod 1 1 100.0
total 37 43 86.0


line stmt bran cond sub pod time code
1 3     3   863 use 5.006;
  3         6  
  3         87  
2 3     3   10 use strict;
  3         4  
  3         71  
3 3     3   9 use warnings;
  3         3  
  3         734  
4              
5             package Dist::Zilla::Util::RoleDB::Items::ThirdParty;
6              
7             our $VERSION = '0.004000'; # TRIAL
8              
9             # ABSTRACT: An aggregate provisioned index of third-party roles
10              
11             our $AUTHORITY = 'cpan:KENTNL'; # AUTHORITY
12              
13             my @items;
14              
15              
16              
17              
18              
19              
20              
21              
22              
23             sub all {
24 2 50   2 1 5 return @items if @items;
25 2         4 _add_items();
26 2         6 return @items;
27             }
28              
29             sub _add_entry {
30 24     24   24 my ( $name, $description, @extra ) = @_;
31 24         63 require Dist::Zilla::Util::RoleDB::Entry;
32 24         324 push @items, Dist::Zilla::Util::RoleDB::Entry->new( name => $name, description => $description, @extra );
33 24         155 return;
34             }
35              
36             sub _add_phase {
37 0     0   0 my ( $name, $description, $phase_method, @extra ) = @_;
38 0         0 require Dist::Zilla::Util::RoleDB::Entry::Phase;
39 0         0 push @items,
40             Dist::Zilla::Util::RoleDB::Entry::Phase->new(
41             name => $name,
42             description => $description,
43             phase_method => $phase_method,
44             @extra,
45             );
46 0         0 return;
47             }
48              
49             sub _add_items {
50 2     2   2 _add_entry( q[-Bootstrap] => q[Shared logic for bootstrap things.] );
51 2         3 _add_entry( q[-BundleDeps] => q[Automatically add all plugins in a bundle as dependencies] );
52 2         4 _add_entry( q[-Git::DirtyFiles] => q[provide the allow_dirty & changelog attributes] );
53 2         3 _add_entry( q[-Git::LocalRepository] => q[A plugin which works with a local git repository as its Dist::Zilla source.] );
54 2         4 _add_entry( q[-Git::Remote::Branch] => q[Parts to enable aggregated specification of remote branches.] );
55 2         4 _add_entry( q[-Git::Remote::Check] => q[Check a remote branch is not ahead of a local one] );
56 2         4 _add_entry( q[-Git::Remote::Update] => q[Update tracking data for a remote repository] );
57 2         2 _add_entry( q[-Git::Remote] => q[Git Remote specification and validation for plugins.] );
58 2         2 _add_entry( q[-Git::Repo] => q[Provide repository information for Git plugins] );
59 2         4 _add_entry( q[-MetaProvider::Provider] => q[A Role for Metadata providers specific to the 'provider' key.] );
60 2         2 _add_entry( q[-PluginBundle::Config::Slicer] => q[Pass Portions of Bundle Config to Plugins] );
61 2         4 _add_entry( q[-PluginBundle::PluginRemover] => q[Add '-remove' functionality to a bundle] );
62 2         2 return;
63             }
64              
65             1;
66              
67             __END__