NAME
Resource::Pack::Installable - role for installable resources
VERSION
version 0.03
SYNOPSIS
package My::New::Resource;
use Moose;
with 'Resource::Pack::Installable';
DESCRIPTION
This role implements various common bits of functionality for all installable resources.
ATTRIBUTES
_install_to_dir
This is passed to the constructor as install_to
, and holds a path relative to the _install_to_dir
of its parent, representing the directory to install this resource into.
METHODS
install_to_dir
Returns the complete directory where this resource will be installed to. Can also be used to set the _install_to_dir
attribute.
install_to_absolute
Returns the target path that will be installed by this resource.
install
Default implementation, which copies the file at install_from_absolute
to install_to_absolute
.
After this method is run (either the default implementation or an overridden implementation), it will call install
on each of the dependencies of this resource.
get
Returns install_as
, to fulfill the requirements for the Bread::Board::Service role.
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.