NAME

Footprintless::Resource::UrlProvider - A resource provider for resources retrieved by URL

VERSION

version 1.11

CONSTRUCTORS

new($agent)

Creates a new Footprintless::Resource::UrlProvider that will use $agent to retrieve the resources. $agent should be an instance of LWP::UserAgent.

METHODS

download($resource, \%options)

Downloads $resource and returns the filename it downloaded to. The returned filename may be an object which overrides the "" operator so that when used in string context, you will get the actual filename. The supported options are:

to

The path of a directory or filename to download to.

resource($spec)

Returns the Footprintless::Resource::Url indicated by $spec.

supports($spec)

Returns 1. This provider will attempt to support any spec string. If $spec is missing the scheme part, it will be set to file://. For example, /foo/bar would result in the URL file:///foo/bar.

AUTHOR

Lucas Theisen <lucastheisen@pastdev.com>

COPYRIGHT AND LICENSE

This software is copyright (c) 2016 by Lucas Theisen.

This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.

SEE ALSO

Please see those modules/websites for more information related to this module.