NAME
Dist::Zilla::Plugin::Code::FilePruner - something that prunes files from the distribution
VERSION
Version 0.002
SYNOPSIS
Dist::Zilla::Role::PluginBundle
package Dist::Zilla::PluginBundle::MyBundle;
use Moose;
with 'Dist::Zilla::Role::PluginBundle';
sub bundle_config {
my ( $class, $section ) = @_;
my @plugins;
push @plugins, [
'SomeUniqueName',
'Dist::Zilla::Plugin::Code::FilePruner',
{
prune_files => [
sub {
my ($self) = @_;
$self->log("Hello world");
},
],
},
];
return @plugins;
}
Dist::Zilla::Role::PluginBundle::Easy
package Dist::Zilla::PluginBundle::MyBundle;
use Moose;
with 'Dist::Zilla::Role::PluginBundle::Easy';
sub configure {
my ( $self ) = @_;
$self->add_plugins([
'Code::FilePruner',
{
prune_files => [
sub {
my ($self) = @_;
$self->log("Hello world");
},
],
},
]);
return;
}
DESCRIPTION
This plugin implements the Dist::Zilla::Role::FilePruner role.
Note: Because of the way Config::MVP processes the arguments you have to put the sub reference inside an array reference. Otherwise you get an Not an ARRAY reference error. See https://github.com/rjbs/Config-MVP/issues/13.
SUPPORT
Bugs / Feature Requests
Please report any bugs or feature requests through the issue tracker at https://github.com/skirmess/Dist-Zilla-Plugin-Code/issues. You will be notified automatically of any progress on your issue.
Source Code
This is open source software. The code repository is available for public review and contribution under the terms of the license.
https://github.com/skirmess/Dist-Zilla-Plugin-Code
git clone https://github.com/skirmess/Dist-Zilla-Plugin-Code.git
AUTHOR
Sven Kirmess <sven.kirmess@kzone.ch>
COPYRIGHT AND LICENSE
This software is Copyright (c) 2020 by Sven Kirmess.
This is free software, licensed under:
The (two-clause) FreeBSD License