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

version 1.111930

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

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.

Jerome Quelin

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.