blib/lib/Dist/Zilla/Plugin/Run/Release.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/BeforeRelease.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/Test.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::Release;
5 # ABSTRACT: execute a command of the distribution on release
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::Releaser
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 release {
Subroutine release: called CC=1 SCAR=0.0
Pod undocumented
18 4 my ( $self, $archive ) = @_;
19 4 $self->_call_script({
20 archive => $archive,
21 pos => [$archive]
22 });
23 }
24  
25 #pod =head1 SYNOPSIS
26 #pod
27 #pod [Run::Release]
28 #pod run = script/myapp_deploy.pl %d %v
29 #pod
30 #pod or
31 #pod
32 #pod [Run::Release / MyAppDeploy]
33 #pod run = script/myapp_deploy.pl %d %v
34 #pod
35 #pod =head1 DESCRIPTION
36 #pod
37 #pod This plugin executes the specified command for the release process.
38 #pod
39 #pod This way you can specify a custom release command without needing any other C<Releaser> plugin.
40 #pod
41 #pod =head1 POSITIONAL PARAMETERS
42 #pod
43 #pod See L<Dist::Zilla::Plugin::Run/CONVERSIONS>
44 #pod for the list of common formatting variables available to all plugins.
45 #pod
46 #pod For backward compatibility:
47 #pod
48 #pod =for :list
49 #pod * The 1st C<%s> will be replaced by the archive of the release.
50 #pod
51 #pod =cut
52  
53 3 1;
54  
55 __END__
« blib/lib/Dist/Zilla/Plugin/Run/BeforeRelease.pm ↑ Summary blib/lib/Dist/Zilla/Plugin/Run/Test.pm »