Dist-Zilla-App-Command-regenerate
view release on metacpan or search on metacpan
lib/Dist/Zilla/Plugin/Regenerate.pm view on Meta::CPAN
our $AUTHORITY = 'cpan:DBOOK'; # AUTHORITY
use Moose qw( with has around );
use Beam::Event qw();
use Beam::Emitter qw();
use Path::Tiny 0.017 qw( path );
use namespace::clean -except => 'meta';
with qw/ Dist::Zilla::Role::Plugin Dist::Zilla::Role::Regenerator Beam::Emitter /;
has filenames => ( is => 'ro', isa => 'ArrayRef', default => sub { [] }, );
around dump_config => sub {
my ( $orig, $self, @args ) = @_;
my $config = $self->$orig(@args);
my $payload = $config->{ +__PACKAGE__ } = {};
$payload->{filenames} = $self->filenames;
## no critic (RequireInterpolationOfMetachars)
# Self report when inherited
$payload->{ q[$] . __PACKAGE__ . '::VERSION' } = $VERSION unless __PACKAGE__ eq ref $self;
( run in 0.579 second using v1.01-cache-2.11-cpan-5f2e87ce722 )