NAME

Resource::Pack::URL - a URL resource

VERSION

version 0.03

SYNOPSIS

my $url = Resource::Pack::URL->new(
    name => 'jquery',
    url  => 'http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js',
);
$url->install;

DESCRIPTION

This class represents a URL to be downloaded and 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

url

Required, read-only attribute for the source URL.

install_as

The name to use for the installed file. Defaults to the filename portion of the url attribute.

METHODS

install_from_absolute

Returns the entire source url.

install

Overridden to handle the downloading of the source file, before installing it.

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.