App::hopen::Asset - record representing a file to be produced
An asset is something to be produced, e.g., a file on disk or something else that could be a target in a Makefile.
TODO: should on-disk targets be required to be BasedPath instances?
The name of the asset. Must be one of:
A Path::Class instance, representing a file or directory on disk
An App::hopen::Util::BasedPath instance, representing a file or directory on disk
Something that stringifies to a non-disk target (e.g., a goal). Anything in this category will be stored as its stringified value, NOT as its original value.
No default, so don't call $obj->target until you've assigned a target!
$obj->target
The App::hopen::G::Cmd (or subclass) instance that produced this asset. Used to distinguish assets from different sources.
An optional asset name. If you don't specify one, a unique one will be generated automatically.
Returns truthy if the "target" is an on-disk entity, i.e., a directory or file.
Enforces the requirement for target and made_by.
target
made_by
To install App::hopen, copy and paste the appropriate command in to your terminal.
cpanm
cpanm App::hopen
CPAN shell
perl -MCPAN -e shell install App::hopen
For more information on module installation, please visit the detailed CPAN module installation guide.