blib/lib/Dist/Zilla/Plugin/Run/AfterMint.pm

filter: Statementstmt 100% 17 / 17 Branchbran n/a Conditioncond n/a MC/DCmcdc n/a Subroutinesub 100% 5 / 5 Podpod 0.0% 0 / 1 totaltotal 95.6% 22 / 23 CC 1 SCAR 0.0
CC
1
Cov
100%
BEGIN
1.0
BEGIN
1.0
BEGIN
1.0
CRAP 1.0
« blib/lib/Dist/Zilla/Plugin/Run/Clean.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/BeforeArchive.pm »
1 1 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 1 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Dist::Zilla::Plugin::Run::AfterMint;
5 # ABSTRACT: Execute a command after a new distribution is minted
6  
7 1 our $VERSION = '0.050';
8  
9 1 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 1 with qw(
11 Dist::Zilla::Role::AfterMint
12 Dist::Zilla::Plugin::Run::Role::Runner
13 );
14  
15 1 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 1 ▶sub after_mint {
Subroutine after_mint: called CC=1 SCAR=0.0
Pod undocumented
18 1 my ($self, $param) = @_;
19 $self->_call_script({
20 dir => $param->{mint_root},
21 1 minting => 1,
22 });
23 }
24  
25 #pod =head1 SYNOPSIS
26 #pod
27 #pod [Run::AfterMint]
28 #pod run = some command %d
29 #pod
30 #pod =head1 DESCRIPTION
31 #pod
32 #pod This plugin executes the specified command after minting a new distribution.
33 #pod
34 #pod =head1 CONVERSIONS
35 #pod
36 #pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS>
37 #pod for the list of common formatting variables available to all plugins.
38 #pod
39 #pod =cut
40  
41 1 1;
42  
43 __END__
« blib/lib/Dist/Zilla/Plugin/Run/Clean.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/BeforeArchive.pm »