Kent Fredric

NAME

Gentoo::MirrorList::Mirror - An objective representation of a single Gentoo mirror

VERSION

version 1.0.2

ATTRIBUTES

country

countryname

region

mirrorname

uri

proto

ipv4

ipv6

partial

PUBLIC METHODS

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

AUTHOR

Kent Fredric <kentnl@cpan.org>

COPYRIGHT AND LICENSE

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.




Hosting generously
sponsored by Bytemark