X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=lib%2FDBIx%2FData%2FStore%2FCommand%2FClosure.pm;fp=lib%2FDBIx%2FData%2FStore%2FCommand%2FClosure.pm;h=1ecd3268a3e69f98f51076802e8542170baf000e;hb=de9534fa36a965cd35e5b212d093dee64e78e8b9;hp=0000000000000000000000000000000000000000;hpb=3a2e7c1c79cf7db2ac812f2e250e939d3e88d639;p=dbsrgits%2FDBIx-Data-Store-old.git diff --git a/lib/DBIx/Data/Store/Command/Closure.pm b/lib/DBIx/Data/Store/Command/Closure.pm new file mode 100644 index 0000000..1ecd326 --- /dev/null +++ b/lib/DBIx/Data/Store/Command/Closure.pm @@ -0,0 +1,14 @@ +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;