Group
Extension

Matches 2

App-RunCron ( S/SO/SONGMU/App-RunCron-0.08.tar.gz, SONGMU, 2014; MetaCPAN )
App-RunCron/lib/App/RunCron/Announcer/Command.pm ( view source; MetaCPAN )
package App::RunCron::Announcer::Command;
use strict;
use warnings;
use JSON::PP;

sub new {
    my ($class, $command) = @_;
    $command = ref $command ? $command : [$command];
    bless $command, $c
lass;
}

sub run {
    my ($self, $runner) = @_;

    open my $pipe, '|-', @$self or die $!;
    print $pipe encode_json($runner->announce_data);
    close $pipe;
}

1;
App-RunCron ( S/SO/SONGMU/App-RunCron-0.08.tar.gz, SONGMU, 2014; MetaCPAN )
App-RunCron/lib/App/RunCron/Reporter/Command.pm ( view source; MetaCPAN )
package App::RunCron::Reporter::Command;
use strict;
use warnings;
use JSON::PP;

sub new {
    my ($class, $command) = @_;
    $command = ref $command ? $command : [$command];
    bless $command, $cl
$pipe, '|-', @$self or die $!;

    my $d = $runner->report_data;
    $d->{is_success} = $d->{is_success} ? $JSON::PP::true : $JSON::PP::false;
    print $pipe encode_json($d);
    close $pipe;
}

1;

Powered by Groonga
Maintained by Kenichi Ishigaki <ishigaki@cpan.org>. If you find anything, submit it on GitHub.