Sys::Config::Manage::Remove - Removes no longer desired files and/or directories.
Version 0.0.1
use Sys::Config::Manage::Remove; my $foo = Sys::Config::Manage::Remove->new(); ...
This is a initialized Sys::Config::Manage object.
$foo=Sys::Config::Manage::Remove->new(\%args); if($foo->error){ warn('error:'.$foo->error.': '.$foo->errorString); }
This adds a directory or file to be removed.
$foo->add( $configDir, $somethingToAdd ); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
This removes everything in the remove list for a specified configuration directory.
There is one argument taken and that is the configuration directory. If it is not specified, it will be automatically choosen.
$foo->clean( $configDir ); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
This check if a path already exists in the list or not.
Two arguments are taken. The first is the configuration directory, which is automatically choosen if not specified. The second is the path to check for.
The returned value is a boolean.
my $exists=$foo->exists( $configDir, $path ); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
This returns the list of the paths to remove.
One argument is taken and that is the configuration directory to us. If not specified, it is automatically selected.
my @removePaths=$foo->list( $configDir ); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
This removes the specified path from the remove list.
Two arguments are taken. The first is the configuration directory, which if not specified is automatically choosen. The second is the path to remove.
$foo->remove( $configDir, $path ); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
This replaces the current remove list with another.
Two arguments are taken. The first is the configuration directory, which is automatically selected if not specified. The second is the list to replace it with.
$foo->save( $configDir, \@removeList ); if ( $foo->error ){ warn('Error:'.$foo->error.': '.$foo->errorString); }
Nothing passed for the Sys::Config::Manage object.
$args{scm} is not a Sys::Config::Manage object.
No item that should be removed defined.
The path does not appear to be a valid path. This means it does not start with a "/" or contains a newline.
Sys::Config::Manage->selectConfigDir errored.
Failed to open the remove file.
Sys::Config::Manage->validConfigDirName errored.
Invalid configuration directory name.
The configuration directory does not exist.
It already exists.
Failed to remove a file or path.
Failed to add the new file.
The path does not exist.
Zane C. Bowers-Hadley, <vvelox at vvelox.net>
<vvelox at vvelox.net>
Please report any bugs or feature requests to bug-sys-config-manage-perms at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Sys-Config-Manage-Perms. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-sys-config-manage-perms at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Sys::Config::Manage::Perms
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Sys-Config-Manage
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Sys-Config-Manage
CPAN Ratings
http://cpanratings.perl.org/d/Sys-Config-Manage
Search CPAN
http://search.cpan.org/dist/Sys-Config-Manage/
Copyright 2011 Zane C. Bowers-Hadley.
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.
To install Sys::Config::Manage, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Sys::Config::Manage
CPAN shell
perl -MCPAN -e shell install Sys::Config::Manage
For more information on module installation, please visit the detailed CPAN module installation guide.