NAME

Devel::PerlySense::Config::Project - A Project's configuration

SYNOPSIS

DESCRIPTION

Configuration can be Project level, stored in .../.PerlySense/project.cfg

PROPERTIES

nameFileConfig

The config file name relative to the root dir.

Default: ./PerlySenseProject/project.cfg

textConfigDefault

The default contents of the config file

nameFileCritic

The Perl::Critic config file name relative to the root dir.

Default: ./PerlySenseProject/.perlcritic

textCriticDefault

The default contents of the Perl::Critic config file

dirRoot

The root directory of the loaded config, or undef if no config is loaded yet.

Default: undef

rhConfig

The hash ref with the currently loaded config.

Default: { }

new()

Create new object.

METHODS

loadConfig(dirRoot => DIR)

Load the file for $dirRoot and set dirDoor and rhConfig.

Return 1 if the file could be loaded, else die, e.g. if the file contains syntax errors.

createFileConfigDefault(dirRoot => DIR)

Create a config file under $dirRoot with the default config and load it. Create directories as needed.

If there is an existing config file, rename it first to end with the current time.

Return 1, or die on errors.

createFileCriticDefault(dirRoot => DIR)

Create a Perl::Critic config file under $dirRoot with the default config. Create directories as needed.

If there is an existing config file, rename it first to end with the current time.

Return 1, or die on errors.

AUTHOR

Johan Lindstrom, <johanl@cpan.org>

BUGS

Please report any bugs or feature requests to bug-devel-perlysense@rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Devel-PerlySense. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.

ACKNOWLEDGEMENTS

COPYRIGHT & LICENSE

Copyright 2005 Johan Lindstrom, All Rights Reserved.

This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.