NAME
Chronicle::Plugin::PreBuild - Execute commands before building the blog
DESCRIPTION
This module exists to provide compatibility with previous releases of chronicle, which allowed the user to specify commands to be executed prior to the blog generation.
If your configuration file defines a command to before building your blog this module will ensure it is executed.
For example you might write this in your configuration file:
pre-build = rsync -vazr user@remote::comments/ comments/
Multiple commands may be defined, and they will be executed in the order listed.
METHODS
Now follows documentation on the available methods.
on_initiate
The on_initiate
method is automatically invoked just before any on_generate
methods which might be present.
This method merely looks for defined pre-build commands, and if any are encountered they are executed via system
.
_order
We ensure that this plugin is invoked last by setting a priority of 0, which is lower than the default supported by Module::Pluggable::Ordered.
This method is present such that Module::Pluggable::Ordered can order our plugins.
LICENSE
This module is free software; you can redistribute it and/or modify it under the terms of either:
a) the GNU General Public License as published by the Free Software Foundation; either version 2, or (at your option) any later version, or
b) the Perl "Artistic License".
AUTHOR
Steve Kemp <steve@steve.org.uk>