| 1 | package Dist::Zilla::PluginBundle::LEONT; | ||||||||||
| 2 | 1 | $Dist::Zilla::PluginBundle::LEONT::VERSION = '0.014'; | |||||||||
| 3 | 1 | ▶ | use strict; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 4 | 1 | ▶ | use warnings; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 5 | |||||||||||
| 6 | 1 | ▶ | use Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 7 | 1 | with qw/Dist::Zilla::Role::PluginBundle::Easy Dist::Zilla::Role::PluginBundle::PluginRemover Dist::Zilla::Role::PluginBundle::Config::Slicer/; | |||||||||
| 8 | |||||||||||
| 9 | has install_tool => ( | ||||||||||
| 10 | is => 'ro', | ||||||||||
| 11 | isa => 'Str', | ||||||||||
| 12 | lazy => 1, | ||||||||||
| 13 | 0 | ▶ | default => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 14 | 0 | my $self = shift; | |||||||||
| 15 | 0 | $self->payload->{install_tool}; | |||||||||
| 16 | }, | ||||||||||
| 17 | 1 | ); | |||||||||
| 18 | |||||||||||
| 19 | has fast => ( | ||||||||||
| 20 | is => 'ro', | ||||||||||
| 21 | isa => 'Bool', | ||||||||||
| 22 | lazy => 1, | ||||||||||
| 23 | 0 | ▶ | default => sub { | ||||||||
|
Subroutine
__ANON__: not called CC=1 SCAR=6.9
| |||||||||||
| 24 | 0 | my $self = shift; | |||||||||
| 25 | 0 | $self->payload->{fast}; | |||||||||
| 26 | }, | ||||||||||
| 27 | 1 | ); | |||||||||
| 28 | |||||||||||
| 29 | 1 | my @plugins_early = (qw/ | |||||||||
| 30 | GatherDir | ||||||||||
| 31 | PruneCruft | ||||||||||
| 32 | ManifestSkip | ||||||||||
| 33 | MetaYAML | ||||||||||
| 34 | License | ||||||||||
| 35 | Readme | ||||||||||
| 36 | /, | ||||||||||
| 37 | [ ExecDir => { dir => 'script' } ], | ||||||||||
| 38 | qw/ | ||||||||||
| 39 | ShareDir | ||||||||||
| 40 | Manifest | ||||||||||
| 41 | |||||||||||
| 42 | AutoPrereqs | ||||||||||
| 43 | MetaJSON | ||||||||||
| 44 | Repository | ||||||||||
| 45 | Bugtracker | ||||||||||
| 46 | Git::NextVersion | ||||||||||
| 47 | MetaProvides::Package | ||||||||||
| 48 | |||||||||||
| 49 | NextRelease | ||||||||||
| 50 | CheckChangesHasContent | ||||||||||
| 51 | Git::Contributors | ||||||||||
| 52 | /); | ||||||||||
| 53 | |||||||||||
| 54 | # AutoPrereqs should be before installtool (for BuildSelf), InstallGuide should be after it. | ||||||||||
| 55 | # UploadToCPAN should be after @Git | ||||||||||
| 56 | |||||||||||
| 57 | 1 | my @plugins_late = (qw/ | |||||||||
| 58 | RunExtraTests | ||||||||||
| 59 | TestRelease | ||||||||||
| 60 | ConfirmRelease | ||||||||||
| 61 | UploadToCPAN | ||||||||||
| 62 | |||||||||||
| 63 | PodWeaver | ||||||||||
| 64 | PkgVersion | ||||||||||
| 65 | |||||||||||
| 66 | PodSyntaxTests | ||||||||||
| 67 | PodCoverageTests/, | ||||||||||
| 68 | [ 'Test::Compile', { xt_mode => -d 't' } ], | ||||||||||
| 69 | ); | ||||||||||
| 70 | |||||||||||
| 71 | 1 | my @bundles = qw/Git/; | |||||||||
| 72 | |||||||||||
| 73 | 1 | my %tools = ( | |||||||||
| 74 | eumm => [ 'MakeMaker' ], | ||||||||||
| 75 | mb => [ 'ModuleBuild' ], | ||||||||||
| 76 | mbc => [ qw/ModuleBuild::Custom Meta::Dynamic::Config/ ], | ||||||||||
| 77 | mbt => [ 'ModuleBuildTiny' ], | ||||||||||
| 78 | self => [ 'BuildSelf' ], | ||||||||||
| 79 | 'mbt+mb' => [ 'ModuleBuildTiny::Fallback' ], | ||||||||||
| 80 | 'mbt+mb+eumm' => [ 'ModuleBuildTiny::Fallback', 'MakeMaker::Fallback' ], | ||||||||||
| 81 | none => [], | ||||||||||
| 82 | ); | ||||||||||
| 83 | |||||||||||
| 84 | 0 | ▶ | sub configure { | ||||||||
|
Subroutine
configure: not called CC=5 SCAR=34.0
Pod
undocumented
| |||||||||||
| 85 | 0 | my $self = shift; | |||||||||
| 86 | |||||||||||
| 87 | 0 | my $tool = $tools{ $self->install_tool }; | |||||||||
| 88 | 0 | ▶ | confess 'No known tool ' . $self->install_tool if not $tool; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 89 | 0 | $self->add_plugins(@plugins_early); | |||||||||
| 90 | 0 | ▶ | $self->add_plugins($self->fast ? 'MinimumPerlFast' : 'MinimumPerl'); | ||||||||
|
Branch: 1 branch
| |||||||||||
| 91 | 0 | $self->add_plugins(@{$tool}); | |||||||||
| 92 | 0 | $self->add_bundle("\@$_") for @bundles; | |||||||||
| 93 | 0 | $self->add_plugins(@plugins_late); | |||||||||
| 94 | 0 | ▶ | $self->add_plugins('InstallGuide') if @{$tool}; | ||||||||
|
Branch: 1 branch
| |||||||||||
| 95 | 0 | return; | |||||||||
| 96 | } | ||||||||||
| 97 | |||||||||||
| 98 | 1 | __PACKAGE__->meta->make_immutable; | |||||||||
| 99 | |||||||||||
| 100 | 1 | ▶ | no Moose; | ||||||||
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||||||||||
| 101 | |||||||||||
| 102 | 1 | 1; | |||||||||
| 103 | |||||||||||
| 104 | # ABSTRACT: LEONT's dzil bundle | ||||||||||
| 105 | |||||||||||
| 106 | __END__ | ||||||||||