Dist::Zilla::Plugin::Code::FileMunger - something that munges files within the distribution
Version 0.008
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::FileMunger', { munge_file => sub { my ($self) = @_; $self->log('Hello world'); }, }, ]; return @plugins; }
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::FileMunger', { munge_files => sub { my ($self) = @_; $self->log('Hello world'); }, }, ]; return @plugins; }
package Dist::Zilla::PluginBundle::MyBundle; use Moose; with 'Dist::Zilla::Role::PluginBundle::Easy'; sub configure { my ( $self ) = @_; $self->add_plugins([ 'Code::FileMunger', { munge_file => sub { my ($self) = @_; $self->log('Hello world'); }, }, ]); return; }
package Dist::Zilla::PluginBundle::MyBundle; use Moose; with 'Dist::Zilla::Role::PluginBundle::Easy'; sub configure { my ( $self ) = @_; $self->add_plugins([ 'Code::FileMunger', { munge_files => sub { my ($self) = @_; $self->log('Hello world'); }, }, ]); return; }
This plugin implements the Dist::Zilla::Role::FileMunger role.
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.
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
Sven Kirmess <sven.kirmess@kzone.ch>
Dist::Zilla, Dist::Zilla::Role::FileMunger
To install Dist::Zilla::Plugin::Code, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Code
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Code
For more information on module installation, please visit the detailed CPAN module installation guide.