PkgForge::Registry::Role - Moose role for classes which use the PkgForge Registry
This documentation refers to PkgForge::Registry::Role version 1.3.0
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.
This role adds one attribute to a class:
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.
There are no methods or subroutines associated with this role.
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.
This module is powered by Moose.
PkgForge and PkgForge::Registry
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.
Please report any bugs or problems (or praise!) to firstname.lastname@example.org, feedback and patches are also always very welcome.
Stephen Quinney <email@example.com>
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.
To install PkgForge::Registry, copy and paste the appropriate command in to your terminal.
perl -MCPAN -e shell
For more information on module installation, please visit the detailed CPAN module installation guide.