NAME
Data::TestImage::DB - an abstract class for an image database
VERSION
version 0.004
METHODS
get_db_dir
get_db_dir()
Returns the top-level directory of this image database. This method must be implemented by children of this class in order to use the default implementation of "get_installed_images".
get_installed_images
get_installed_images()
Returns a list of all installed images in the database. Each image is returned as a Path::Class::File.
get_image
get_image( $image_name )
Returns the first image file (as a Path::Class::File) from "get_installed_images" that has a filename that matches the string $image_name
.
install_package
install_package($args, %opt)
A DB child can optionally implement this method in order to pass in arguments for installing further images.
Keys in in %opt
may include:
AUTHOR
Zakariyya Mughal <zmughal@cpan.org>
COPYRIGHT AND LICENSE
This software is copyright (c) 2014 by Zakariyya Mughal.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.