Dist-Zilla-Plugin-Test-Kwalitee-Extra

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/Test/Kwalitee/Extra.pm  view on Meta::CPAN


# ABSTRACT: Dist::Zilla plugin for Test::Kwalitee::Extra
our $VERSION = 'v0.2.1'; # VERSION

use Moose;
use Data::Section-setup;
with 'Dist::Zilla::Role::FileGatherer', 'Dist::Zilla::Role::TextTemplate';

sub mvp_multivalue_args { return qw( arg ) }

has arg => ( is => 'ro', isa => 'ArrayRef[Str]', traits => [ 'Array' ], default => sub { [] }, handles => { push_arg => 'push' }, );

sub gather_files {
  my ( $self, ) = @_;

  my $tests = q{eval "use Test::Kwalitee::Extra";};

  if ( @{ $self->arg } > 0 ) {

    my $arg = join ' ', @{ $self->arg };
    $tests = qq[eval "use Test::Kwalitee::Extra qw( $arg )"];



( run in 2.125 seconds using v1.01-cache-2.11-cpan-39bf76dae61 )