| MooseX-Runnable-Fuse documentation | view source | Contained in the MooseX-Runnable-Fuse distribution. |
MooseX::Runnable::Fuse - implement a FUSE filesystem as a Moose class
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
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.
Start a process implementing the filesystem, mount the filesystem.
MooseX::Runnable (for details on the MooseX::Runnable framework)
Jonathan Rockway <jrockway@cpan.org>
This module is free software, you may redistribute it under the same terms as Perl itself.
| MooseX-Runnable-Fuse documentation | view source | Contained in the MooseX-Runnable-Fuse distribution. |