Config::GitLike::Git(3pm) User Contributed Perl Documentation Config::GitLike::Git(3pm)NAME
Config::GitLike::Git - load Git configuration files
SYNOPSIS
use Config::GitLike::Git;
my $config = Config::GitLike::Git->new;
$config->load("/path/to/repo");
DESCRIPTION
This is a modification of Config::GitLike to look at the same locations that Git writes to. Unlike with Config::GitLike, you do not need to
pass a confname to its constructor. This module also enables the Config::GitLike option to maintain git compatibility when reading and
writing variables.
"load" in Config::GitLike should be passed path to the top level of a git repository -- this defaults to the current directory. It will
append ".git" as necessary. It supports both bare and non-bare repositories.
METHODS
This module overrides these methods from "Config::GitLike":
dir_file
The per-directory configuration file is .git/config
user_file
The per-user configuration file is ~/.gitconfig
global_file
The per-host configuration file is /etc/gitconfig
is_git_dir
Returns true if a file contains the necessary files (as git would reckon it) for the path to be a git repository.
load_dirs
Loads the relevant .git/config file.
SEE ALSO
Config::GitLike
LICENSE
You may modify and/or redistribute this software under the same terms as Perl 5.8.8.
COPYRIGHT
Copyright 2010 Best Practical Solutions, LLC
AUTHORS
Alex Vandiver <alexmv@bestpractical.com>, Christine Spang <spang@bestpractical.com>
perl v5.14.2 2012-02-16 Config::GitLike::Git(3pm)
Check Out this Related Man Page
Config::Any::INI(3pm) User Contributed Perl Documentation Config::Any::INI(3pm)NAME
Config::Any::INI - Load INI config files
DESCRIPTION
Loads INI files. Example:
name=TestApp
[Controller::Foo]
foo=bar
[Model::Baz]
qux=xyzzy
METHODS
extensions( )
return an array of valid extensions ("ini").
load( $file )
Attempts to load $file as an INI file.
requires_all_of( )
Specifies that this module requires Config::Tiny in order to work.
PACKAGE VARIABLES
$MAP_SECTION_SPACE_TO_NESTED_KEY (boolean)
This variable controls whether spaces in INI section headings will be expanded into nested hash keys. e.g. it controls whether [Full
Power] maps to $config->{'Full Power'} or $config->{'Full'}->{'Power'}
By default it is set to 1 (i.e. true).
Set it to 0 to preserve literal spaces in section headings:
use Config::Any;
use Config::Any::INI;
$Config::Any::INI::MAP_SECTION_SPACE_TO_NESTED_KEY = 0;
AUTHORS
Brian Cassidy <bricas@cpan.org>
Joel Bernstein <rataxis@cpan.org>
COPYRIGHT AND LICENSE
Copyright 2006-2011 by Brian Cassidy, portions copyright 2006, 2007 by Joel Bernstein
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
SEE ALSO
o Catalyst
o Config::Any
o Config::Tiny
perl v5.14.2 2011-05-25 Config::Any::INI(3pm)
Does anyone have a list of key config files and the respective paths for HP-UX? Or does anyone know where I can get a list similar to this?
Thanks,
TOdd (0 Replies)
I'm looking for good ways to handle config generation. I have been rolling my own for a few years now, but I'm wondering if there is a better way and would like to get some advice from anyone who has any ideas or experience in doing this. Here are some things I want to achieve in generating... (1 Reply)
Hi,
I have a folder which contains multiple config.xml files and one input file, Please see the below format.
Config Files format looks like :-
<application name="SAMPLE-ARCHIVE">
<NVPairs name="Global Variables">
<NameValuePair>
<name>MIG_Host</name>
... (3 Replies)
Hi,
I have 2 perl SubRoutines (sub 1 and sub 2). I created two perl modules for these (Sub1.pm and Sub2.pm).
How can I include these in a config file (say Config.cfg) and call the config file in my main script Rename.pl to use the 2 subroutines?
Right now here are the content of Config.cfg... (1 Reply)
Hi All,
I am new to Unix scripting, I have requirement where I need to read the key value pair from config file.
Sample Config file:
Key(File Pattern) Value(File Directory location)
test /Users/Bkumar/Downloads/testdir
prod ... (1 Reply)
Hi All,
Can anyone please explain me how to read data from config file in Perl.
Suppose i have a config file named cfile. The data in config file is
name=parth
lname=mittal
user=2007
hostname=fluoride
username=parthmittal
password=XXXXXX
account=unix
url=www.unix.com
... (2 Replies)
HI,
I want to append some configuration statements to the existing file in unix to it's 3 line , 7th line and 28 line.
There is a file generated by our system job, to this I need to add some lines as mentioned below.
DIR=/usr/CDR - line 3
Source=/usr/src - line 7
Target=/usr/tgt - line... (2 Replies)
Hello Experts,
Can anybody assist me in writing a code to do the following:
I have a file present in the same directory from where this cod would run. The content of the file would be as below:
Config Filename: config_details.txt
Format:
Server_prefix,IP_of_server,username, password,... (1 Reply)