The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

Module::Packaged::Generator::Role::UrlFetching - role to provide easy url fetching

VERSION

version 1.111930

DESCRIPTION

This Moose role provides the consuming class with an easy way to mirror files from the internet.

METHODS

fetch_url

    my $file = $self->fetch_url( $url, $basename );

Try to fetch $url, and store it as $basename in a private data directory (cf Module::Packaged::Generator::Utils). Return the full path if successful (a Path::Class object), throws an error if download ended up as an error.

AUTHOR

Jerome Quelin

COPYRIGHT AND LICENSE

This software is copyright (c) 2010 by Jerome Quelin.

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