X-Git-Url: http://git.ieval.ro/?a=blobdiff_plain;f=lib%2FGruntmaster%2FApp%2FCommand%2FRerun.pm;h=c309eaaeb9ce3be102f78b5438323210f150cfcb;hb=e1b6fd19f5724ce68ee92aaeae1c0ddf7a6a2561;hp=b5e98a83e722c2134a8d8104144d78a97e63cff1;hpb=92f74061ec24c7d45c9312ae54280356530f6c8c;p=gruntmaster-data.git diff --git a/lib/Gruntmaster/App/Command/Rerun.pm b/lib/Gruntmaster/App/Command/Rerun.pm index b5e98a8..c309eaa 100644 --- a/lib/Gruntmaster/App/Command/Rerun.pm +++ b/lib/Gruntmaster/App/Command/Rerun.pm @@ -3,7 +3,7 @@ package Gruntmaster::App::Command::Rerun; use 5.014000; use warnings; -our $VERSION = '5999.000_004'; +our $VERSION = '5999.000_014'; use Gruntmaster::App '-command'; use Gruntmaster::Data; @@ -20,8 +20,42 @@ sub validate_args { sub execute { my ($self, $opt, $args) = @_; my ($obj) = @$args; - db->rerun_job($obj); + rerun_job $obj; } 1; __END__ + +=encoding utf-8 + +=head1 NAME + +Gruntmaster::App::Command::Rerun - rerun a job + +=head1 SYNOPSIS + + gm rerun 123 + +=head1 DESCRIPTION + +The rerun command takes the ID of a job, clears its result, and makes +B rerun it. + +=head1 SEE ALSO + +L + +=head1 AUTHOR + +Marius Gavrilescu, Emarius@ieval.roE + +=head1 COPYRIGHT AND LICENSE + +Copyright (C) 2014-2015 by Marius Gavrilescu + +This library is free software; you can redistribute it and/or modify +it under the same terms as Perl itself, either Perl version 5.20.1 or, +at your option, any later version of Perl 5 you may have available. + + +=cut