Gentoo::MirrorList::Mirror - An objective representation of a single Gentoo mirror
version 1.0.2
country
countryname
region
mirrorname
uri
proto
ipv4
ipv6
partial
country_match
->country_match( 'str' ) ->country_match(qr/str/)
countryname_match
->countryname_match( 'str' ) ->countryname_match(qr/str/)
region_match
->region_match( 'str' ) ->region_match(qr/str/)
mirrorname_match
->mirrorname_match( 'str' ) ->mirrornamename_match(qr/str/)
uri_match
->uri_match( 'str' ) ->uri_match(qr/str/)
proto_match
->proto_match( 'str' ) ->proto_match(qr/str/)
property_match
A Magic Method that matches given properties
->property_match( 'mirrorname', 'foo') # mirrorname eq foo ->property_match( 'mirrorname', qr/foo/ ) # mirrorname =~ qr/foo/ ->property_match( 'ipv4', 1 ) # not ( 0 xor ipv4 ) ->property_match( 'ipv6', 0 ) # not ( 0 xor ipv6 )
file
Provide a file uri for file.
->file('distfiles/QuuxFoo.bar.tar.gz') # http://your.mirror.here/path/to/distfiles/QuuxFoo.bar.tar.gz
Kent Fredric <kentnl@cpan.org>
This software is copyright (c) 2013 by Kent Fredric.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Gentoo::MirrorList, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Gentoo::MirrorList
CPAN shell
perl -MCPAN -e shell install Gentoo::MirrorList
For more information on module installation, please visit the detailed CPAN module installation guide.