NAME
Resource::Pack::Dir - a directory resource
VERSION
version 0.03
SYNOPSIS
my $dir = Resource::Pack::Dir->new(
name => 'test',
dir => 'css',
install_from => data_dir,
);
$dir->install;
DESCRIPTION
This class represents a directory 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
dir
Read-only attribute for the source directory. Defaults to the service name.
install_from_dir
Base dir, where dir
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 directory. Defaults to dir
.
METHODS
install_from_absolute
Entire path to the source directory (concatenation of install_from_dir
and dir
).
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.