NAME

Stepford::Role::Step::FileGenerator - A role for steps that generate files

VERSION

version 0.000002

DESCRIPTION

This role consumes the Stepford::Role::Step and adds some additional functionality specific to generating files.

ATTRIBUTE

This role provides the following attributes:

outputs

This is a required attribute. It must contain one or more files that the step will generate. This can be passed as a single argument or an arrayref containing multiple files.

Each file can be provided as strings or Path::Class::File objects.

METHODS

This role provides the following methods:

$step->last_run_time()

This returns the most recent file modification time from all of the steps outputs.

$step->_outputs()

This returns a list of the step's outputs as Path::Class::File objects.

AUTHOR

Dave Rolsky <drolsky@maxmind.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by MaxMind, Inc..

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