move status update to job class

This commit is contained in:
Oliver Gorwits
2017-09-05 20:41:05 +01:00
parent c8e5cea4ed
commit cd71a0b7a8
3 changed files with 16 additions and 14 deletions

View File

@@ -67,17 +67,4 @@ sub status {
);
}
=head2 update_job
Updates an L<App::Netdisco::Backend::Job> with status and log.
=cut
sub update_job {
my $self = shift;
my $job = shift or return;
$job->status( $self->status );
$job->log( $self->log );
}
1;