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


Devel-PerlySense documentation  | view source Contained in the Devel-PerlySense distribution.

Index


NAME

Top

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

SYNOPSIS

Top

DESCRIPTION

Top

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

PROPERTIES

Top

nameFileConfig

The config file name relative to the root dir.

Default: ./PerlySenseProject/project.cfg

textConfigDefault

The default contents of the 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

Top

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.

AUTHOR

Top

Johan Lindström, <johanl[ÄT]DarSerMan.com>

BUGS

Top

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

Top

COPYRIGHT & LICENSE

Top


Devel-PerlySense documentation  | view source Contained in the Devel-PerlySense distribution.