Chronicle::Plugin::PostBuild - Execute commands after building the blog
This module exists to provide compatibility with previous releases of chronicle, which allowed the user to specify commands to be executed after the blog had been generated.
If your configuration file defines a command to execute after building your blog this module will ensure it is executed.
For example you might write this in your configuration file:
post-build = rsync -vazr output/ user@remote:htdocs/
Multiple commands may be defined, and they will be executed in the order listed.
Now follows documentation on the available methods.
The on_generate method is automatically invoked to generate output pages. This particular plugin method is invoked after any on_initiate methods which might be present.
on_generate
on_initiate
This method merely looks for defined post-build commands, and if any are encountered they are executed via system.
system
We ensure that this plugin is invoked last by setting a priority of 999, which is greater than the default supported by Module::Pluggable::Ordered.
This method is present such that Module::Pluggable::Ordered can order our plugins.
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".
Steve Kemp <steve@steve.org.uk>
To install App::Chronicle, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::Chronicle
CPAN shell
perl -MCPAN -e shell install App::Chronicle
For more information on module installation, please visit the detailed CPAN module installation guide.