Jan Henning Thorsen > Fuse-Template > Fuse::Template::Root

Download:
Fuse-Template-0.0201.tar.gz

Dependencies

Annotate this POD

Website

View/Report Bugs
Source  

NAME ^

Fuse::Template::Root - Root filesystem object

SYNOPSIS ^

    package Class;
    # will import RootObject typeconstraint
    use Fuse::Template::Root qw/RootObject/;
    has foo => ( isa => RootObject, coerce => 1 );
    ...

    package main;

    # same result:
    my $obj = Class->new( foo => { path => $some_root } );
    my $obj = Class->new( foo => $some_root );
    my $obj = Class->new(
                  foo => Fuse::Template::Root->new({
                      path => $some_root
                  }),
              );

DESCRIPTION ^

The RootObject can coerce either Str and HashRef into a Fuse::Template::Root object. The HashRef will be used as object constructor, while the Str will be set as "path" attribute.

ATTRIBUTES ^

path

Holds a string representing the path to where the template files exist. This attribute is required.

mode

Holds the file mode for the target mount directory. Default value is 0775. (octal value)

uid

The user id of who owns the target mount path. Defaults to the $REAL_USER_ID

gid

The group id of who owns the target mount path. Defaults to the first integer from $REAL_GROUP_ID.

ctime

Last change time of the target mount path. Defaults to time when the object got created.

mtime

Last modify time of the target mount path. Defaults to time when the object got created.

atime

Last access time of the target mount path. Defaults to time when the object got created.

block_size

Preferred block size for file system I/O. Defaults to 1024. (The default value might change)

AUTHOR ^

See Fuse::Template

syntax highlighting: