File::Tasks::Edit - A File::Tasks edit task (change a file)
The File::Tasks::Edit task is similar to the File::Tasks::Add task, except that it expects a current file to already exists, which it will change the contents of (without changing permissions).
File::Tasks::Edit
Creates a new File::Tasks::Edit object, although you probably won't be creating this object directly from here.
Returns a new File::Tasks::Edit object, or undef on error.
undef
Returns the task type, which is always 'Edit'.
The path accessor returns the path to the file within the set of tasks.
path
The source accessor returns the content source, which could be anything supported by File::Tasks::Provider.
source
The test method checks to see if the file can be edited.
test
Returns true if so, or false if not.
The execute method executes the task on the local filesystem.
execute
Returns true on success or undef on error.
The content method returns the content that is to be written to the file.
content
Bugs should be reported via the CPAN bug tracker at
http://rt.cpan.org/NoAuth/ReportBug.html?Queue=File-Tasks
For other issues, contact the author.
Adam Kennedy <adamk@cpan.org>, http://ali.as/
Copyright 2005 Adam Kennedy.
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the LICENSE file included with this module.
To install File::Tasks, copy and paste the appropriate command in to your terminal.
cpanm
cpanm File::Tasks
CPAN shell
perl -MCPAN -e shell install File::Tasks
For more information on module installation, please visit the detailed CPAN module installation guide.