From df90fafe0605f13b335dd92c9dde7802dc96920d Mon Sep 17 00:00:00 2001 From: Maarten Vanraes Date: Sun, 7 Feb 2016 16:50:50 +0100 Subject: add a FileRole and IOFS Role --- lib/ManaTools/Shared/disk_backend/FileSystem.pm | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/ManaTools/Shared/disk_backend/FileSystem.pm') diff --git a/lib/ManaTools/Shared/disk_backend/FileSystem.pm b/lib/ManaTools/Shared/disk_backend/FileSystem.pm index b7b58305..682e3a9f 100644 --- a/lib/ManaTools/Shared/disk_backend/FileSystem.pm +++ b/lib/ManaTools/Shared/disk_backend/FileSystem.pm @@ -123,4 +123,24 @@ sub has_type { return 0; } +package ManaTools::Shared::disk_backend::IOFS; + +use Moose::Role; + +package ManaTools::Shared::disk_backend::FileRole; + +use Moose::Role; + +has 'fs' => ( + is => 'rw', + does => 'ManaTools::Shared::disk_backend::IOFS', + required => 1, +); + +has 'path' => ( + is => 'rw', + isa => 'Str', + required => 1, +); + 1; -- cgit v1.2.1