Resource::Pack::File - a file resource
version 0.03
my $file = Resource::Pack::File->new( name => 'test', file => 'test.txt', install_from => data_dir, ); $file->install;
This class represents a file to be installed. It can also be added as a subresource to a Resource::Pack::Resource. This class consumes the Resource::Pack::Installable, Bread::Board::Service, and Bread::Board::Service::WithDependencies roles.
Read-only attribute for the source file. Defaults to the service name.
Base dir, where file is located. Defaults to the install_from_dir of the parent resource. The associated constructor argument is install_from.
file
install_from_dir
install_from
The name to use for the installed file. Defaults to file.
Entire path to the source file (concatenation of install_from_dir and file).
Please see those modules/websites for more information related to this module.
Resource::Pack
Stevan Little <stevan.little@iinteractive.com>
Jesse Luehrs <doy at tozt dot net>
This software is copyright (c) 2011 by Infinity Interactive, 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.
To install Resource::Pack, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Resource::Pack
CPAN shell
perl -MCPAN -e shell install Resource::Pack
For more information on module installation, please visit the detailed CPAN module installation guide.