/usr/share/perl5/AnyEvent/Gearman/Job.pm is in libanyevent-gearman-perl 0.10-2.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | package AnyEvent::Gearman::Job;
use Any::Moose;
extends 'AnyEvent::Gearman::Task';
no Any::Moose;
sub complete {
my ($self, $result) = @_;
$self->event( on_complete => $result );
}
sub data {
my ($self, $data) = @_;
$self->event( on_data => $data );
}
sub fail {
my ($self) = @_;
$self->event('on_fail');
}
sub status {
my ($self, $numerator, $denominator) = @_;
$self->event( on_status => $numerator, $denominator );
}
sub warning {
my ($self, $warning) = @_;
$self->event( on_warning => $warning );
}
__PACKAGE__->meta->make_immutable;
__END__
=head1 NAME
AnyEvent::Gearman::Job - gearman job
=head1 SYNOPSIS
$job->complete($result);
$job->data($data);
$job->fail;
$job->status($numerator, $denominator);
$job->warning($warning);
=head1 METHODS
=head2 complete($result)
=head2 data($data)
=head2 fail
=head2 status($numerator, $denominator)
=head2 warning($warning)
=head1 AUTHOR
Daisuke Murase <typester@cpan.org>
Pedro Melo <melo@cpan.org>
=head1 COPYRIGHT AND LICENSE
Copyright (c) 2009 by KAYAC Inc.
This program is free software; you can redistribute
it and/or modify it under the same terms as Perl itself.
The full text of the license can be found in the
LICENSE file included with this module.
=cut
|