The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

App::Zapzi::Distribute - distribute published eBooks to a destination

VERSION

version 0.017

DESCRIPTION

This class takes a published eBook and distributes it. The distribution method can either be set in the class attributes (eg coming from the command line) or via config variables. Default if neither is set is to not distribute the eBook further.

ATTRIBUTES

file

Completed eBook file to distribute.

method

Method to distribute file. If set, must be one of the defined Distributer roles.

destination

Where to send the file to. The distribution role will validate this.

completion_message

Message from the distributer after completion - should be set in both error and success cases, but blank if no distributer has been invoked.

METHODS

distribute

Distributes the file according to the method set on the class or the default configured distribution. Returns 1 if OK (including no distributor defined), undef on failure.

AUTHOR

Rupert Lane <rupert@rupert-lane.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2015 by Rupert Lane.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.