NAME

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

SYNOPSIS

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

This role allows you to make a class into a runnable (via 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

run

Start a process implementing the filesystem, mount the filesystem.

SEE ALSO

Fuse

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

AUTHOR

Jonathan Rockway <jrockway@cpan.org>

COPYRIGHT

This module is free software, you may redistribute it under the same terms as Perl itself.