Kent Fredric

NAME

Dist::Zilla::Tempdir::Item::State - Intermediate state for a file

VERSION

version 1.001001

ATTRIBUTES

hash

Provides a digest hash of file's content

file

A Dist::Zilla::File

new_content

Content of storage_prefix/file read from disk.

new_hash

Hash of new_content

storage_prefix

The root directory to write this file out to, and to read it from.

METHODS

BUILD

Ensures hash is populated at build time.

write_out

Emits file into storage_prefix

on_disk

Returns true if file exists in storage_prefix

on_disk_changed

Returns true if the file is on disk, and the on-disk hash doesn't match the written out file's hash.

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

This software is copyright (c) 2014 by Kent Fredric.

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