Perl::Dist::Asset::File - "Single File" asset for a Win32 Perl
my $binary = Perl::Dist::Asset::File->new( url => 'http://host/path/file', install_to => 'perl/foo.txt', );
Perl::Dist::Asset::File is a data class that provides encapsulation and error checking for a single file to be installed unmodified into a Perl::Dist-based Perl distribution.
It is normally created on the fly by the <Perl::Dist::Inno> install_file method (and other things that call it).
install_file
This asset exists to allow for cases where very small tweaks need to be done to distributions by dropping in specific single files.
The specification of the location to retrieve the package is done via the standard mechanism implemented in Perl::Dist::Asset.
This class inherits from Perl::Dist::Asset and shares its API.
The new constructor takes a series of parameters, validates then and returns a new Perl::Dist::Asset::Binary object.
new
It inherits all the params described in the Perl::Dist::Asset new method documentation, and adds some additional params.
The required install_to param describes the location that the package will be installed to.
install_to
The install_to param should be a simple string that represents the entire destination path (including file name).
The new constructor returns a Perl::Dist::Asset::File object, or throws an exception (dies) if an invalid param is provided.
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Perl-Dist
For other issues, contact the author.
Adam Kennedy <adamk@cpan.org>
Perl::Dist, Perl::Dist::Inno, Perl::Dist::Asset
Copyright 2007 - 2009 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install Perl::Dist, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Perl::Dist
CPAN shell
perl -MCPAN -e shell install Perl::Dist
For more information on module installation, please visit the detailed CPAN module installation guide.