Dist::Zilla::Plugin::Hook - Write Dist::Zilla plugin directly in dist.ini
Dist::Zilla
Version v0.8.3, released on 2016-11-25 22:04 UTC.
Dist-Zilla-Plugin-Hook (or just Hook) is a set of Dist-Zilla plugins. Every plugin executes Perl code inlined into dist.ini at particular stage of build process.
Dist-Zilla-Plugin-Hook
Hook
Dist-Zilla
This is Dist::Zilla::Plugin::Hook module documentation. Read this if you are going to hack or extend Dist-Zilla-Plugin-Hook.
Dist::Zilla::Plugin::Hook
If you want to write Dist::Zilla plugin directly in dist.ini, read the manual. General topics like getting source, building, installing, bug reporting and some others are covered in the README.
This plugin consumes Hooker role like all other Hook plugins. However, this plugin never executes its Perl code. Instead, it just stores it for later use. As of today, only Hook plugin with prologue name is actually used:
Hooker
prologue
[Hook/prologue] . = use autodie ':all';
Such code will be executed just before each hook. Note again: Hook itself does not execute its code; if there are no other hooks in dist.ini, this code will never execute.
BTW, Dist::Zilla and CPAN do not handle well distributions with no main module. This is also a "main" module of Dist-Zilla-Plugin-Hook distribution, to make Dist::Zilla and CPAN indexer happy.
CPAN
Van de Bugger <van.de.bugger@gmail.com>
Copyright (C) 2015, 2016 Van de Bugger
License GPLv3+: The GNU General Public License version 3 or later <http://www.gnu.org/licenses/gpl-3.0.txt>.
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
To install Dist::Zilla::Plugin::Hook, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dist::Zilla::Plugin::Hook
CPAN shell
perl -MCPAN -e shell install Dist::Zilla::Plugin::Hook
For more information on module installation, please visit the detailed CPAN module installation guide.