NAME¶
Perlanet::Trait::YAMLConfig - configure Perlanet through a YAML configuration
file
SYNOPSIS¶
package MyPerlanet;
extends 'Perlanet';
with 'Perlanet::Traits::YAMLConfig';
my $perlanet = MyPerlanet->new_with_config(
configfile => 'whatever.yml'
);
$perlanet->run;
DESCRIPTION¶
Allows you to move the configuration of Perlanet to an external YAML
configuration file.
METHODS¶
THIRTY_DAYS¶
The default length of caching, if caching options are present in the
configuration
get_config_from_file¶
Extracts the configuration from a YAML file
AUTHOR¶
Oliver Charles, <oliver.g.charles@googlemail.com>
COPYRIGHT AND LICENSE¶
Copyright (c) 2010 by Magnum Solutions Ltd.
This library is free software; you can redistribute it and/or
modify it under the same terms as Perl itself, either Perl version 5.10.0
or, at your option, any later version of Perl 5 you may have available.