LCFG::Om::Environment - Sanitises the om environment before method invocation
This documentation refers to LCFG::Om::Environment version 0.4.7
my $env_system = LCFG::Om::Environment->new();
$env_system->initialise();
This is a module which can be loaded to sanitise the om(1) environment prior to invoking a method for an LCFG component.
Immediately before issuing the command to call the component method the om command examines the value of the om_environment resource for the relevant LCFG component. If a value has been set this is used as a Perl module name and if it matches the regular expression for permitted names it will be loaded. The initialise() method will then be called to configure the calling environment. Note that om will die() if a module name does not match the permitted regular expression or the module fails to load.
There are only two methods in this module, the important one being initialise()
new()
Creates and returns a new LCFG::Om::Environment object.
initialise()
This is a simple environment initialisation method which does the following:
/0022If you need to do more than this, for instance to also switch to a new PAG when using AFS, you will need to write your own environment module which inherits from this module and overrides the initialise() method.
This module requires the Readonly Perl module.
om(1)
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.
Fedora3, Darwin, Fedora5, Fedora6, Scientific5
There are no known bugs in this application. Please report any problems to bugs@lcfg.org or via https://bugs.lcfg.org/, feedback and patches are also always very welcome.
Simon Wilkinson <simon@sxw.org.uk>
Unless otherwise stated all code is copyright (C) 2009 by University of Edinburgh.
This library is free software; you can redistribute it and/or modify it under the terms of the GPL, version 2 or later.
Hey! The above document had some coding errors, which are explained below:
=back doesn't take any parameters, but you said =back 4