Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions lib/Proclet/Declare.pm
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ sub service {
my $tag = shift;
my @service = @_;
my $code = ( ref($service[0]) && ref($service[0]) eq 'CODE' )
? $service[0]
? $service[0]
: \@service;
push @{_proclet->{service}},{ tag => $tag, code => $code };
}
Expand All @@ -44,7 +44,7 @@ sub scheduled {
my $cron = shift;
my @service = @_;
my $code = ( ref($service[0]) && ref($service[0]) eq 'CODE' )
? $service[0]
? $service[0]
: \@service;
push @{_proclet->{service}},{ tag => $tag, code => $code, every => $cron };
}
Expand Down Expand Up @@ -82,7 +82,7 @@ Proclet::Declare - Declare interface to Proclet
=head1 SYNOPSIS

use Proclet::Declare;

color;
env(
DEBUG => 1,
Expand All @@ -97,7 +97,7 @@ Proclet::Declare - Declare interface to Proclet
worker(
'worker' => 5
);

run;

=head1 DESCRIPTION
Expand All @@ -122,7 +122,7 @@ default: disabled

Environment values

worker(
env(
FOO => 'abc'
BAR => 'efg'
);
Expand Down