MooseX::Runnable::Fuse - implement a FUSE filesystem as a Moose class


MooseX-Runnable-Fuse documentation  | view source Contained in the MooseX-Runnable-Fuse distribution.

Index


NAME

Top

MooseX::Runnable::Fuse - implement a FUSE filesystem as a Moose class

SYNOPSIS

Top

    use MooseX::Declare;

    class Filesystem with MooseX::Runnable::Fuse
                     with Filesystem::Fuse::Readable {
        use MooseX::Types::Path::Class qw(File);

        method getattr(File $file does coerce){
            ...
            return (0, 0, ...);
        }

        ...
    }

From the command-line:

    mx-run Filesystem --mountpoint /mnt/filesystem --debug # or omit --debug

DESCRIPTION

Top

This role allows you to make a class into a runnable (via MooseX::Runnable (MooseX::Runnable) Fuse filesystem. You also get four other roles to help this module determine how to run your filesystem; Filesystem::Fuse::Readable, Filesystem::Fuse::Writable, Filesystem::Fuse::Attributes::Readable, and Filesystem::Fuse::Attributes::Writable. Composing these roles into your class will ensure that you implement the correct methods to get the functionality you desire.

METHODS

Top

run

Start a process implementing the filesystem, mount the filesystem.

SEE ALSO

Top

Fuse

MooseX::Runnable (for details on the MooseX::Runnable framework)

AUTHOR

Top

Jonathan Rockway <jrockway@cpan.org>

COPYRIGHT

Top


MooseX-Runnable-Fuse documentation  | view source Contained in the MooseX-Runnable-Fuse distribution.