blib/lib/Dist/Zilla/Plugin/Run/BeforeArchive.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/AfterMint.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/BeforeRelease.pm »
1 3 ▶use strict;
Subroutine BEGIN: called CC=1 SCAR=0.0
2 3 ▶use warnings;
Subroutine BEGIN: called CC=1 SCAR=0.0
3  
4 package Dist::Zilla::Plugin::Run::BeforeArchive;
5 # ABSTRACT: execute a command of the distribution before creating the archive
6  
7 3 our $VERSION = '0.050';
8  
9 3 ▶use Moose;
Subroutine BEGIN: called CC=1 SCAR=0.0
10 3 with qw(
11 Dist::Zilla::Role::BeforeArchive
12 Dist::Zilla::Plugin::Run::Role::Runner
13 );
14  
15 3 ▶use namespace::autoclean;
Subroutine BEGIN: called CC=1 SCAR=0.0
16  
17 4 ▶sub before_archive {
Subroutine before_archive: called CC=1 SCAR=0.0
Pod undocumented
18 4 my ($self) = @_;
19 4 $self->_call_script({});
20 }
21  
22 #pod =head1 SYNOPSIS
23 #pod
24 #pod [Run::BeforeArchive]
25 #pod run = script/do_this.pl --dir %d --version %v
26 #pod run = script/do_that.pl
27 #pod
28 #pod =head1 DESCRIPTION
29 #pod
30 #pod This plugin executes the specified command before the archive file is built.
31 #pod
32 #pod =head1 POSITIONAL PARAMETERS
33 #pod
34 #pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS>
35 #pod for the list of common formatting variables available to all plugins.
36 #pod
37 #pod =cut
38  
39 3 1;
40  
41 __END__
« blib/lib/Dist/Zilla/Plugin/Run/AfterMint.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/BeforeRelease.pm »