surprise! Object::Remote!
[scpubgit/DKit.git] / lib / DX / Lib / FS / Action / SetPathMode.pm
index 8613448..6366d49 100644 (file)
@@ -1,12 +1,12 @@
 package DX::Lib::FS::Action::SetPathMode;
 
-use DX::Lib::FS::Guts;
 use Moo;
 
 has path_status => (is => 'ro', required => 1);
 has mode => (is => 'ro', required => 1);
 
 with 'DX::Role::Action';
+with 'DX::Lib::FS::Role::RunOn';
 
 sub expected_effect {
   my ($self) = @_;
@@ -16,7 +16,7 @@ sub expected_effect {
 
 sub _do_run {
   my ($self) = @_;
-  DX::Lib::FS::Guts->set_path_mode($self->path, $self->mode);
+  $self->_call_guts(set_path_mode => $self->mode);
   +(path_status => $self->path);
 }