Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

prophet::config(3pm) [debian man page]

Prophet::Config(3pm)					User Contributed Perl Documentation				      Prophet::Config(3pm)

NAME
Prophet::Config SYNOPSIS
From, for example, a class that inherits from Prophet::App: has config => ( is => 'rw', isa => 'Prophet::Config', default => sub { my $self = shift; return Prophet::Config->new( app_handle => $self, confname => 'prophetrc', ); }, ); DESCRIPTION
This class represents the configuration of Prophet and the application built on top of it. It's just an instance of Config::GitLike with a few small customizations and additions. METHODS
new( confname => 'prophetrc', app_handle => $instance_of_prophet_app ) Initialize the configuration. Does NOT load the config for you! You need to call load for that. The configuration will also load automatically the first time your prophet application tries to get a config variable. Both constructor arguments are required. replica_config_file The replica-specific configuration file, or the configuration file given by "PROPHET_APP_CONFIG" if that environmental variable is set. aliases( $config_filename ) A convenience method that gets you a hash (or a hashref, depending on context) of all currently defined aliases. (Basically, every entry in the 'alias' section of the config file.) If a filename is passed in, this method will only return the aliases that are defined in that particular config file. sources A convenience method that gets you a hash (or a hashref, depending on context) of all currently defined source replicas, in the format { 'name' => 'URL' }, or { 'URL' => 'name' } if the argument "by_url" is passed in. CONFIG VARIABLES
The following config variables are currently used in various places in Prophet: <record-type>.summary-format record.summary-format user.email-address alias.<alias> SEE ALSO
Most of the useful methods for getting and setting configuration variables actually come from Config::GitLike. See that module's documentation for details. perl v5.10.1 2009-08-17 Prophet::Config(3pm)

Check Out this Related Man Page

App::ClusterSSH::Config(3pm)				User Contributed Perl Documentation			      App::ClusterSSH::Config(3pm)

NAME
ClusterSSH::Config - Object representing application configuration SYNOPSIS
DESCRIPTION
Object representing application configuration METHODS
$host=ClusterSSH::Config->new ({ }) Create a new configuration object. $config->parse_config_file('<filename>'); Read in configuration from given filename $config->validate_args(); Validate and apply all configuration loaded at this point $path = $config->find_binary('<name>'); Locate the binary <name> and return the full path. Doesn't just search $PATH in case the environment isn't set up correctly $config->load_configs(@extra); Load up configuration from known locations (warn if .csshrc file found) and load in option files as necessary. $config->write_user_config_file(); Write out default $HOME/.clusterssh/config file (before option config files are loaded). $config->dump() Write currently defined configuration to STDOUT AUTHOR
Duncan Ferguson, "<duncan_j_ferguson at yahoo.co.uk>" LICENSE AND COPYRIGHT
Copyright 1999-2010 Duncan Ferguson. This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License. See http://dev.perl.org/licenses/ for more information. perl v5.14.2 2012-06-24 App::ClusterSSH::Config(3pm)
Man Page