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 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.
Filesystem::Fuse::Readable
Filesystem::Fuse::Writable
Filesystem::Fuse::Attributes::Readable
Filesystem::Fuse::Attributes::Writable
Start a process implementing the filesystem, mount the filesystem.
Fuse
MooseX::Runnable (for details on the MooseX::Runnable framework)
MooseX::Runnable
Jonathan Rockway <jrockway@cpan.org>
<jrockway@cpan.org>
This module is free software, you may redistribute it under the same terms as Perl itself.
To install MooseX::Runnable::Fuse, copy and paste the appropriate command in to your terminal.
cpanm
cpanm MooseX::Runnable::Fuse
CPAN shell
perl -MCPAN -e shell install MooseX::Runnable::Fuse
For more information on module installation, please visit the detailed CPAN module installation guide.