NAME

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

VERSION

version 0.006001

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 or one of the MooseX::Types::Path::Tiny file types. The attributes can also be subtypes of these types.

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.

SUPPORT

Bugs may be submitted through https://github.com/maxmind/Stepford/issues.

AUTHOR

Dave Rolsky <drolsky@maxmind.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 - 2023 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.