NAME
Resource::Pack::File - a file resource
VERSION
version 0.03
SYNOPSIS
my
$file
= Resource::Pack::File->new(
name
=>
'test'
,
file
=>
'test.txt'
,
install_from
=> data_dir,
);
$file
->install;
DESCRIPTION
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.
ATTRIBUTES
file
Read-only attribute for the source file. Defaults to the service name.
install_from_dir
Base dir, where file
is located. Defaults to the install_from_dir
of the parent resource. The associated constructor argument is install_from
.
install_as
The name to use for the installed file. Defaults to file
.
METHODS
install_from_absolute
Entire path to the source file (concatenation of install_from_dir
and file
).
SEE ALSO
Please see those modules/websites for more information related to this module.
AUTHORS
Stevan Little <stevan.little@iinteractive.com>
Jesse Luehrs <doy at tozt dot net>
COPYRIGHT AND LICENSE
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.