NAME

Youri::Media - Abstract media class

DESCRIPTION

This abstract class defines Youri::Media interface.

CLASS METHODS

new(%args)

Creates and returns a new Youri::Media object.

Generic parameters:

id $id

Media id.

name $name

Media name.

type $type (source/binary)

Media type.

test true/false

Test mode (default: false).

verbose true/false

Verbose mode (default: false).

options $options

Hash of test-specific options.

skip_tests $tests

List of tests to skip.

skip_archs $arches

List of arches to skip.

Subclass may define additional parameters.

Warning: do not call directly, call subclass constructor instead.

INSTANCE METHODS

get_id()

Returns media identity.

get_name()

Returns the name of this media.

get_type()

Returns the type of this media.

get_option($test, $option)

Returns a specific option for given test.

skip_archs()

Returns the list of arch which are to be skipped for this media.

skip_arch($arch)

Tells wether given arch is to be skipped for this media.

skip_tests()

Returns the list of id of test which are to be skipped for this media.

skip_test($test_id)

Tells wether test with given id is to be skipped for this media.

get_package_class()

Return package class for this media.

traverse_files($function)

Apply given function to all files of this media.

traverse_headers($function)

Apply given function to all headers of this media.

SUBCLASSING

The following methods have to be implemented:

traverse_headers
traverse_files

COPYRIGHT AND LICENSE

Copyright (C) 2002-2006, YOURI project

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