NAME
Giddy::Role::PathMaker - Provides file and directory creation for Giddy::Database
VERSION
version 0.012_002
SYNOPSIS
# used internally
DESCRIPTION
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.
METHODS
_create_dir( $path )
Creates a directory under $path
and chmods it 0775. If path already exists, nothing will happen.
_mark_dir_as_static( $path )
Marks a path (assumed to be a directory) as a static-file directory by creating an empty '.static' file under it.
_touch( $path )
Creates an empty file in $path
and chmods it 0664.
_create_file( $path, $content, $mode )
Creates a file called $path
, with the provided content, and chmods it to $mode
.
AUTHOR
Ido Perlmuter, <ido at ido50.net>
BUGS
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.
SUPPORT
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
AnnoCPAN: Annotated CPAN documentation
CPAN Ratings
Search CPAN
LICENSE AND COPYRIGHT
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.