1Dist::Zilla::Role::FileU(s3e)r Contributed Perl DocumentaDtiisotn::Zilla::Role::File(3)
2
3
4
6 Dist::Zilla::Role::File - something that can act like a file
7
9 version 6.024
10
12 This role describes a file that may be written into the shipped
13 distribution.
14
16 This module should work on any version of perl still receiving updates
17 from the Perl 5 Porters. This means it should work on any version of
18 perl released in the last two to three years. (That is, if the most
19 recently released version is v5.40, then this module should work on
20 both v5.40 and v5.38.)
21
22 Although it may work on older versions of perl, no guarantee is made
23 that the minimum required version will not be increased. The version
24 may be increased for any reason, and there is no promise that patches
25 will be accepted to lower the minimum required perl.
26
28 name
29 This is the name of the file to be written out.
30
31 added_by
32 This is a list of strings describing when and why the file was added to
33 the distribution and when it was updated (its content, filename, or
34 other attributes). It will generally be updated by a plugin
35 implementing the FileMunger role. Its accessor will return the list of
36 strings, concatenated with '; '.
37
38 mode
39 This is the mode with which the file should be written out. It's an
40 integer with the usual "chmod" semantics. It defaults to 0644.
41
43 is_bytes
44 Returns true if the "encoding" is bytes. When true, accessing
45 "content" will be an error.
46
48 Ricardo SIGNES 😏 <rjbs@semiotic.systems>
49
51 This software is copyright (c) 2021 by Ricardo SIGNES.
52
53 This is free software; you can redistribute it and/or modify it under
54 the same terms as the Perl 5 programming language system itself.
55
56
57
58perl v5.34.0 2022-01-21 Dist::Zilla::Role::File(3)