surprise! Object::Remote!
[scpubgit/DKit.git] / lib / DX / Lib / FS / Observation / FileContent.pm
index ee5a441..e8ed309 100644 (file)
@@ -1,14 +1,15 @@
 package DX::Lib::FS::Observation::FileContent;
 
 use DX::Lib::FS::Fact::FileContent;
-use DX::Lib::FS::Guts;
 use Moo;
 
 has path => (is => 'ro', required => 1);
 
+with 'DX::Lib::FS::Role::RunOn';
+
 sub run {
   my ($self) = @_;
-  my $data = DX::Lib::FS::Guts->file_content($self->path);
+  my $data = $self->_call_guts('file_content');
   return () unless defined($data);
   +(file_content => DX::Lib::FS::Fact::FileContent->new(
     path => $self->path,