Proclet::Declare - Declare interface to Proclet
use Proclet::Declare; color; env( DEBUG => 1, FOO => 1 ); service('web', 'plackup -p 5963 app.psgi'); service('memcached', '/usr/local/bin/memcached', '-p', '11211'); service('worker', './bin/worker'); worker( 'worker' => 5 ); run;
Proclet::Declare supports to use Proclet declare style
Sets colored log
color(); #enable color(1); #enable color(0); #disable
default: disabled
Environment values
worker( FOO => 'abc' BAR => 'efg' );
Sets the service
# coderef service('tag', sub { MyWorker->run }); # exec command service('tag', '/usr/local/bin/memcached','-vv');
Number of children to fork
worker( process_name => 1 process_name => 5 );
Masahiro Nagano <kazeburo {at} gmail.com>
Tokuhiro Matsuno
Proclet
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Proclet, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Proclet
CPAN shell
perl -MCPAN -e shell install Proclet
For more information on module installation, please visit the detailed CPAN module installation guide.