use aliased 'DX::Lib::FS::Fact::FileContent';
use aliased 'DX::Lib::FS::Fact::PathStatus';
use aliased 'DX::Lib::FS::Fact::PathStatusInfo';
-use DX::Lib::FS::Guts;
use Moo;
with 'DX::Role::Action';
+with 'DX::Lib::FS::Role::RunOn';
has path => (is => 'ro', required => 1);
sub _do_run {
my ($self) = @_;
- DX::Lib::FS::Guts->create_file($self->path, $self->mode, $self->data);
+ $self->_call_guts(create_file => $self->mode, $self->data);
+(path_status => $self->path);
}