Giddy::Role::PathMaker - Provides file and directory creation for Giddy::Database
version 0.013_001
# used internally
This role provides Giddy::Database with common methods needed for creating paths in the database.
Requires the attribute '_repo' to be implemented by consuming classes.
Creates a directory under $path and chmods it 0775. If path already exists, nothing will happen.
$path
Marks a path (assumed to be a directory) as a static-file directory by creating an empty '.static' file under it.
Creates an empty file in $path and chmods it 0664.
Creates a file called $path, with the provided content, and chmods it to $mode.
$mode
Ido Perlmuter, <ido at ido50.net>
<ido at ido50.net>
Please report any bugs or feature requests to bug-giddy at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Giddy. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-giddy at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Giddy::Role::PathMaker
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Giddy
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Giddy
CPAN Ratings
http://cpanratings.perl.org/d/Giddy
Search CPAN
http://search.cpan.org/dist/Giddy/
Copyright 2011 Ido Perlmuter.
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 Giddy, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Giddy
CPAN shell
perl -MCPAN -e shell install Giddy
For more information on module installation, please visit the detailed CPAN module installation guide.