File Coverage

blib/lib/Dist/Zilla/PluginBundle/Alien.pm
Criterion Covered Total %
statement 21 21 100.0
branch n/a
condition n/a
subroutine 7 7 100.0
pod 0 2 0.0
total 28 30 93.3


line stmt bran cond sub pod time code
1             package Dist::Zilla::PluginBundle::Alien;
2             our $AUTHORITY = 'cpan:GETTY';
3             # ABSTRACT: Dist::Zilla::PluginBundle::Basic for Alien
4             $Dist::Zilla::PluginBundle::Alien::VERSION = '0.023';
5 2     2   463748 use Moose;
  2         2  
  2         12  
6 2     2   9009 use Dist::Zilla;
  2         560346  
  2         66  
7 2     2   494 use Dist::Zilla::Plugin::Alien;
  2         5  
  2         86  
8             with 'Dist::Zilla::Role::PluginBundle::Easy';
9              
10              
11 2     2   1091 use Dist::Zilla::PluginBundle::Basic;
  2         95184  
  2         238  
12              
13             # multiple build/install commands return as an arrayref
14             sub mvp_multivalue_args {
15 1     1 0 170 Dist::Zilla::Plugin::Alien->mvp_multivalue_args;
16             };
17              
18             sub configure {
19 1     1 0 5 my ($self) = @_;
20              
21 1         9 $self->add_bundle('Filter' => {
22             -bundle => '@Basic',
23             -remove => ['MakeMaker'],
24             });
25              
26             $self->add_plugins([ 'Alien' => {
27 1         12184 map { $_ => $self->payload->{$_} } keys %{$self->payload},
  5         198  
  1         33  
28             }]);
29             }
30              
31             __PACKAGE__->meta->make_immutable;
32 2     2   16 no Moose;
  2         2  
  2         11  
33             1;
34              
35             __END__
36              
37             =pod
38              
39             =head1 NAME
40              
41             Dist::Zilla::PluginBundle::Alien - Dist::Zilla::PluginBundle::Basic for Alien
42              
43             =head1 VERSION
44              
45             version 0.023
46              
47             =head1 SYNOPSIS
48              
49             In your B<dist.ini>:
50              
51             name = Alien-ffmpeg
52              
53             [@Alien]
54             repo = http://ffmpeg.org/releases
55              
56             =head1 DESCRIPTION
57              
58             This plugin bundle allows to use L<Dist::Zilla::Plugin::Alien> together
59             with L<Dist::Zilla::PluginBundle::Basic>.
60              
61             =head1 AUTHOR
62              
63             Torsten Raudssus <torsten@raudss.us>
64              
65             =head1 COPYRIGHT AND LICENSE
66              
67             This software is copyright (c) 2013 by Torsten Raudssus.
68              
69             This is free software; you can redistribute it and/or modify it under
70             the same terms as the Perl 5 programming language system itself.
71              
72             =cut