package DX::Lib::FS::Observation::EnvDir;

use DX::Lib::FS::Fact::EnvDir;
use Moo;

with 'DX::Lib::FS::Role::RunOn';

has path => (is => 'ro', required => 1);

sub run {
  my ($self) = @_;
  +(env_dir => DX::Lib::FS::Fact::EnvDir->new(
    path => $self->path,
    value => $self->_call_guts('env_dir')
  ));
}

1;
