package DBIx::Data::Store::Command::Closure;

use Moose;
use Method::Signatures::Simple;

has [ 'run', 'against' ] => (is => 'ro', required => 1);

method execute {
  $self->against->run($self->run);
}

__PACKAGE__->meta->make_immutable;

1;
