The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

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

VERSION

version 0.004001

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.

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 - 2017 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.