NAME
Stepford::Role::Step::FileGenerator - A role for steps that generate files
VERSION
version 0.002009
DESCRIPTION
This role consumes the Stepford::Role::Step role and adds some additional functionality specific to generating files.
METHODS
This role provides the following methods:
$step->BUILD()
This method adds a wrapper to the BUILD method which checks that all of the class's productions are of the File
type provided by MooseX::Types::Path::Class. The attributes can also be subtypes of this type.
This check may be changed so that it is done as part of the class definition, if I can think of a way to do this sanely.
$step->last_run_time()
This returns the most recent file modification time from all of the step's productions, or undef
(requesting an unconditional run) if any productions are missing.
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.