NAME

Dist::Zilla::Plugin::Hook - Write Dist::Zilla plugin directly in dist.ini

VERSION

Version 0.007, released on 2015-08-13 19:35 UTC.

WHAT?

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.

This is Dist::Zilla::Plugin::Hook module documentation. Read this if you are going to hack or extend 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.

DESCRIPTION

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:

[Hook/prologue]
    . = use autodie ':all';

Such code which 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.

SEE ALSO

Dist::Zilla
Dist::Zilla::Plugin::Hook::Manual
Dist::Zilla::Role::Hooker

AUTHOR

Van de Bugger <van.de.bugger@gmail.com>

COPYRIGHT AND LICENSE

Copyright © 2015 Van de Bugger

This file is part of perl-Dist-Zilla-Plugin-Hook.

perl-Dist-Zilla-Plugin-Hook is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

perl-Dist-Zilla-Plugin-Hook is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with perl-Dist-Zilla-Plugin-Hook. If not, see <http://www.gnu.org/licenses/>.