The Perl Toolchain Summit needs more sponsors. If your company depends on Perl, please support this very important event.

NAME

PkgForge::Registry::Role - Moose role for classes which use the PkgForge Registry

VERSION

This documentation refers to PkgForge::Registry::Role version 1.3.0

SYNOPSIS

     Package Foo;

     use Moose;

     with 'PkgForge::Registry::Role';

DESCRIPTION

This is a Moose role which adds a registry attribute to your class which gives access to a PkgForge::Registry object in an easy to use way.

ATTRIBUTES

This role adds one attribute to a class:

registry

This attribute can be specified as either a string, hash reference or array reference. When a string is passed in it is assumed that this is the path to a configuration file name and new_with_config is called. When an rray-reference or hash-reference is used the data-structure will be dereferenced appropriately and passed into the new method. If no value is specified for this attribute then new_with_config is called and the default configuration file will be used.

SUBROUTINES/METHODS

There are no methods or subroutines associated with this role.

CONFIGURATION AND ENVIRONMENT

By default the PkgForge::Registry object will use the configuration file /etc/pkgforge/registry.yml if it exists. That file can be overridden by passing a different file name as the value for the registry attribute.

DEPENDENCIES

This module is powered by Moose.

SEE ALSO

PkgForge and PkgForge::Registry

PLATFORMS

This is the list of platforms on which we have tested this software. We expect this software to work on any Unix-like platform which is supported by Perl.

ScientificLinux5, Fedora13

BUGS AND LIMITATIONS

Please report any bugs or problems (or praise!) to bugs@lcfg.org, feedback and patches are also always very welcome.

AUTHOR

    Stephen Quinney <squinney@inf.ed.ac.uk>

LICENSE AND COPYRIGHT

    Copyright (C) 2010 University of Edinburgh. All rights reserved.

This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.