Dist-Zilla

 view release on metacpan or  search on metacpan

lib/Dist/Zilla/Plugin/GatherFile.pm  view on Meta::CPAN

);

#pod =attr filename
#pod
#pod The name of the file to gather, relative to the C<root>.
#pod Can be used more than once.
#pod
#pod =cut

has filenames => (
  is => 'ro', isa => ArrayRefOfPaths,
  lazy => 1,
  coerce => 1,
  default => sub { [] },
);

sub mvp_aliases { +{ filename => 'filenames' } }
sub mvp_multivalue_args { qw(filenames) }

around dump_config => sub {
  my $orig = shift;

t/plugins/distmeta-merge.t  view on Meta::CPAN

use Test::Deep;

{
  package Keywords; # see also Dist::Zilla::Plugin::Keywords ;)
  use Moose;
  with 'Dist::Zilla::Role::MetaProvider';

  sub mvp_multivalue_args { qw(keywords) }

  has keywords => (
    is => 'ro', isa => 'ArrayRef[Str]',
    lazy => 1,
    default => sub { [] },
  );

  sub metadata
  {
    my $self = shift;
    my $keywords = $self->keywords;
    return { @$keywords ? ( keywords => $keywords ) : () };
  }



( run in 0.797 second using v1.01-cache-2.11-cpan-5f2e87ce722 )