Changeset 480 for trunk


Ignore:
Timestamp:
05/31/23 16:33:29 (11 months ago)
Author:
nanardon
Message:

Update script for latest Catalyst

Location:
trunk
Files:
18 edited

Legend:

Unmodified
Added
Removed
  • trunk/lib/Epoll/I18N/de.po

    r476 r480  
    537537msgstr "Anzahl der Auswahlmöglichkeiten:" 
    538538 
    539 #: root/templates/pollinc/binary/results.tt:15 
     539#: root/templates/pollinc/binary/results.tt:16 
    540540msgid "Number of votes" 
    541541msgstr "Anzahl der Stimmen" 
     
    814814msgstr "Externe Autentifizierung verwenden" 
    815815 
    816 #: root/templates/ballot/default.tt:43 
    817 #: root/templates/includes/admin_menu.tt:15 
     816#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    818817msgid "Validate" 
    819818msgstr "BestÀtigen" 
     
    10191018 
    10201019#. (poll.info("elected_count")) 
    1021 #: root/templates/includes/poll.tt:16 
    1022 #: root/templates/pollinc/binary/ballot.tt:6 
     1020#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10231021msgid "for %1 elected" 
    10241022msgstr "fÃŒr %1 gewÀhlt" 
  • trunk/lib/Epoll/I18N/el.po

    r476 r480  
    612612msgstr "ΑριΞΌός πιΞαΜώΜ επιλογώΜ" 
    613613 
    614 #: root/templates/pollinc/binary/results.tt:15 
     614#: root/templates/pollinc/binary/results.tt:16 
    615615msgid "Number of votes" 
    616616msgstr "ΑριΞΌός ψήφωΜ" 
     
    920920ρωσης της ψήφοϠ
    921921 
    922 #: root/templates/ballot/default.tt:43 
    923 #: root/templates/includes/admin_menu.tt:15 
     922#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    924923msgid "Validate" 
    925924msgstr "Επικύρωση" 
     
    11441143 
    11451144#. (poll.info("elected_count")) 
    1146 #: root/templates/includes/poll.tt:16 
    1147 #: root/templates/pollinc/binary/ballot.tt:6 
     1145#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    11481146#, fuzzy 
    11491147msgid "for %1 elected" 
  • trunk/lib/Epoll/I18N/es.po

    r476 r480  
    525525msgstr "Número de posibles opciones" 
    526526 
    527 #: root/templates/pollinc/binary/results.tt:15 
     527#: root/templates/pollinc/binary/results.tt:16 
    528528msgid "Number of votes" 
    529529msgstr "Número de votos" 
     
    797797msgstr "Utilizar la autenticidad externa" 
    798798 
    799 #: root/templates/ballot/default.tt:43 
    800 #: root/templates/includes/admin_menu.tt:15 
     799#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    801800msgid "Validate" 
    802801msgstr "comprobar" 
     
    995994 
    996995#. (poll.info("elected_count")) 
    997 #: root/templates/includes/poll.tt:16 
    998 #: root/templates/pollinc/binary/ballot.tt:6 
     996#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    999997msgid "for %1 elected" 
    1000998msgstr "para el 1% de los elegidos" 
  • trunk/lib/Epoll/I18N/et.po

    r476 r480  
    524524msgstr "Võimalike valikute arv" 
    525525 
    526 #: root/templates/pollinc/binary/results.tt:15 
     526#: root/templates/pollinc/binary/results.tt:16 
    527527msgid "Number of votes" 
    528528msgstr "HÀÀlte arv" 
     
    795795msgstr "VÀlise autentimise kasutamine" 
    796796 
    797 #: root/templates/ballot/default.tt:43 
    798 #: root/templates/includes/admin_menu.tt:15 
     797#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    799798msgid "Validate" 
    800799msgstr "Valideeri" 
     
    992991 
    993992#. (poll.info("elected_count")) 
    994 #: root/templates/includes/poll.tt:16 
    995 #: root/templates/pollinc/binary/ballot.tt:6 
     993#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    996994msgid "for %1 elected" 
    997995msgstr "%1 valimiseks" 
  • trunk/lib/Epoll/I18N/fr.po

    r476 r480  
    526526msgstr "Nombre de choix possibles" 
    527527 
    528 #: root/templates/pollinc/binary/results.tt:15 
     528#: root/templates/pollinc/binary/results.tt:16 
    529529msgid "Number of votes" 
    530530msgstr "Nombre de votes" 
     
    796796msgstr "Utiliser une authentification externe" 
    797797 
    798 #: root/templates/ballot/default.tt:43 
    799 #: root/templates/includes/admin_menu.tt:15 
     798#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    800799msgid "Validate" 
    801800msgstr "Valider" 
     
    994993 
    995994#. (poll.info("elected_count")) 
    996 #: root/templates/includes/poll.tt:16 
    997 #: root/templates/pollinc/binary/ballot.tt:6 
     995#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    998996msgid "for %1 elected" 
    999997msgstr "pour %1 élu(e)(s)" 
  • trunk/lib/Epoll/I18N/it.po

    r476 r480  
    527527msgstr "Numero delle scelte possibili" 
    528528 
    529 #: root/templates/pollinc/binary/results.tt:15 
     529#: root/templates/pollinc/binary/results.tt:16 
    530530msgid "Number of votes" 
    531531msgstr "Numero dei voti" 
     
    800800msgstr "Usa autenticazione esterna" 
    801801 
    802 #: root/templates/ballot/default.tt:43 
    803 #: root/templates/includes/admin_menu.tt:15 
     802#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    804803msgid "Validate" 
    805804msgstr "Convalida" 
     
    998997 
    999998#. (poll.info("elected_count")) 
    1000 #: root/templates/includes/poll.tt:16 
    1001 #: root/templates/pollinc/binary/ballot.tt:6 
     999#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10021000msgid "for %1 elected" 
    10031001msgstr "Eletto per %1" 
  • trunk/lib/Epoll/I18N/messages.pot

    r476 r480  
    509509msgstr "" 
    510510 
    511 #: root/templates/pollinc/binary/results.tt:15 
     511#: root/templates/pollinc/binary/results.tt:16 
    512512msgid "Number of votes" 
    513513msgstr "" 
  • trunk/lib/Epoll/I18N/nl.po

    r476 r480  
    527527msgstr "Aantal mogelijke keuzes" 
    528528 
    529 #: root/templates/pollinc/binary/results.tt:15 
     529#: root/templates/pollinc/binary/results.tt:16 
    530530msgid "Number of votes" 
    531531msgstr "Aantal stemmen" 
     
    799799msgstr "Gebruik externe authenticatie" 
    800800 
    801 #: root/templates/ballot/default.tt:43 
    802 #: root/templates/includes/admin_menu.tt:15 
     801#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    803802msgid "Validate" 
    804803msgstr "Bevestig" 
     
    1000999 
    10011000#. (poll.info("elected_count")) 
    1002 #: root/templates/includes/poll.tt:16 
    1003 #: root/templates/pollinc/binary/ballot.tt:6 
     1001#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10041002msgid "for %1 elected" 
    10051003msgstr "voor %1 verkozen" 
  • trunk/lib/Epoll/I18N/pl.po

    r476 r480  
    548548msgstr "Liczba mozliwych wyborów" 
    549549 
    550 #: root/templates/pollinc/binary/results.tt:15 
     550#: root/templates/pollinc/binary/results.tt:16 
    551551msgid "Number of votes" 
    552552msgstr "Liczba głosów" 
     
    837837msgstr "Zastosuj zewnętrzne uwierzytelnianie" 
    838838 
    839 #: root/templates/ballot/default.tt:43 
    840 #: root/templates/includes/admin_menu.tt:15 
     839#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    841840msgid "Validate" 
    842841msgstr "Potwierdź" 
     
    10471046 
    10481047#. (poll.info("elected_count")) 
    1049 #: root/templates/includes/poll.tt:16 
    1050 #: root/templates/pollinc/binary/ballot.tt:6 
     1048#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10511049msgid "for %1 elected" 
    10521050msgstr "dla %1 wybranych" 
  • trunk/lib/Epoll/I18N/ro.po

    r476 r480  
    560560msgstr "Numărul opțiunilor posibile" 
    561561 
    562 #: root/templates/pollinc/binary/results.tt:15 
     562#: root/templates/pollinc/binary/results.tt:16 
    563563msgid "Number of votes" 
    564564msgstr "Numărul voturilor" 
     
    830830msgstr "Utilizează o autentificarea externă" 
    831831 
    832 #: root/templates/ballot/default.tt:43 
    833 #: root/templates/includes/admin_menu.tt:15 
     832#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    834833msgid "Validate" 
    835834msgstr "Validează" 
     
    10301029 
    10311030#. (poll.info("elected_count")) 
    1032 #: root/templates/includes/poll.tt:16 
    1033 #: root/templates/pollinc/binary/ballot.tt:6 
     1031#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10341032msgid "for %1 elected" 
    10351033msgstr "pentru %1 aleși" 
  • trunk/lib/Epoll/I18N/ru.po

    r476 r480  
    536536 Ð²Ð°Ñ€ÐžÐ°ÐœÑ‚Пв" 
    537537 
    538 #: root/templates/pollinc/binary/results.tt:15 
     538#: root/templates/pollinc/binary/results.tt:16 
    539539msgid "Number of votes" 
    540540msgstr "КПлОчествП гПлПсПв" 
     
    814814msgstr "ИспПльзПвать вМешМее прОлПжеМОе" 
    815815 
    816 #: root/templates/ballot/default.tt:43 
    817 #: root/templates/includes/admin_menu.tt:15 
     816#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    818817msgid "Validate" 
    819818msgstr "ППЎтверЎОть" 
     
    10191018 
    10201019#. (poll.info("elected_count")) 
    1021 #: root/templates/includes/poll.tt:16 
    1022 #: root/templates/pollinc/binary/ballot.tt:6 
     1020#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10231021#, fuzzy 
    10241022msgid "for %1 elected" 
  • trunk/lib/Epoll/I18N/tr.po

    r476 r480  
    533533msgstr "Muhtemel tercihlerin adeti" 
    534534 
    535 #: root/templates/pollinc/binary/results.tt:15 
     535#: root/templates/pollinc/binary/results.tt:16 
    536536msgid "Number of votes" 
    537537msgstr "Seçmenlerin adeti" 
     
    803803msgstr "Harici kimlik doğrulamayı kullanınız" 
    804804 
    805 #: root/templates/ballot/default.tt:43 
    806 #: root/templates/includes/admin_menu.tt:15 
     805#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    807806msgid "Validate" 
    808807msgstr "Onaylayınız" 
     
    1000999 
    10011000#. (poll.info("elected_count")) 
    1002 #: root/templates/includes/poll.tt:16 
    1003 #: root/templates/pollinc/binary/ballot.tt:6 
     1001#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10041002msgid "for %1 elected" 
    10051003msgstr "%1 için seçildi" 
  • trunk/lib/Epoll/I18N/zh_TW.po

    r479 r480  
    552552msgstr "可遞擇敞" 
    553553 
    554 #: root/templates/pollinc/binary/results.tt:15 
     554#: root/templates/pollinc/binary/results.tt:16 
    555555msgid "Number of votes" 
    556556msgstr "投祚敞" 
     
    832832msgstr "䜿甚倖郚認證" 
    833833 
    834 #: root/templates/ballot/default.tt:43 
    835 #: root/templates/includes/admin_menu.tt:15 
     834#: root/templates/ballot/default.tt:43 root/templates/includes/admin_menu.tt:15 
    836835msgid "Validate" 
    837836msgstr "確認" 
     
    10381037 
    10391038#. (poll.info("elected_count")) 
    1040 #: root/templates/includes/poll.tt:16 
    1041 #: root/templates/pollinc/binary/ballot.tt:6 
     1039#: root/templates/includes/poll.tt:16 root/templates/pollinc/binary/ballot.tt:6 
    10421040msgid "for %1 elected" 
    10431041msgstr "%1 個已遞取" 
  • trunk/script/epoll_cgi.pl

    r242 r480  
    1 #!/usr/bin/perl -w 
     1#!/usr/bin/env perl 
    22 
    3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'CGI' } 
    4  
    5 use strict; 
    6 use warnings; 
    7 use FindBin; 
    8 use lib "$FindBin::Bin/../lib"; 
    9 use Epoll; 
    10  
    11 Epoll->run; 
     3use Catalyst::ScriptRunner; 
     4Catalyst::ScriptRunner->run('Epoll', 'CGI'); 
    125 
    1361; 
     
    2316=head1 DESCRIPTION 
    2417 
    25 Run a Catalyst application as a cgi script. 
     18Run a Catalyst application as a CGI script. 
    2619 
    27 =head1 AUTHOR 
     20=head1 AUTHORS 
    2821 
    29 Sebastian Riedel, C<sri@oook.de> 
     22Catalyst Contributors, see Catalyst.pm 
    3023 
    3124=head1 COPYRIGHT 
    3225 
    33  
    34 This library is free software, you can redistribute it and/or modify 
     26This library is free software. You can redistribute it and/or modify 
    3527it under the same terms as Perl itself. 
    3628 
    3729=cut 
     30 
  • trunk/script/epoll_create.pl

    r242 r480  
    1 #!/usr/bin/perl -w 
     1#!/usr/bin/env perl 
    22 
    33use strict; 
    44use warnings; 
    5 use Getopt::Long; 
    6 use Pod::Usage; 
    7 use Catalyst::Helper; 
    85 
    9 my $force = 0; 
    10 my $mech  = 0; 
    11 my $help  = 0; 
    12  
    13 GetOptions( 
    14     'nonew|force'    => \$force, 
    15     'mech|mechanize' => \$mech, 
    16     'help|?'         => \$help 
    17  ); 
    18  
    19 pod2usage(1) if ( $help || !$ARGV[0] ); 
    20  
    21 my $helper = Catalyst::Helper->new( { '.newfiles' => !$force, mech => $mech } ); 
    22  
    23 pod2usage(1) unless $helper->mk_component( 'Epoll', @ARGV ); 
     6use Catalyst::ScriptRunner; 
     7Catalyst::ScriptRunner->run('Epoll', 'Create'); 
    248 
    2591; 
     
    3418 
    3519 Options: 
    36    -force        don't create a .new file where a file to be created exists 
    37    -mechanize    use Test::WWW::Mechanize::Catalyst for tests if available 
    38    -help         display this help and exits 
     20   --force        don't create a .new file where a file to be created exists 
     21   --mechanize    use Test::WWW::Mechanize::Catalyst for tests if available 
     22   --help         display this help and exits 
    3923 
    4024 Examples: 
    4125   epoll_create.pl controller My::Controller 
    42    epoll_create.pl -mechanize controller My::Controller 
     26   epoll_create.pl --mechanize controller My::Controller 
    4327   epoll_create.pl view My::View 
    44    epoll_create.pl view MyView TT 
    45    epoll_create.pl view TT TT 
     28   epoll_create.pl view HTML TT 
    4629   epoll_create.pl model My::Model 
    4730   epoll_create.pl model SomeDB DBIC::Schema MyApp::Schema create=dynamic\ 
    4831   dbi:SQLite:/tmp/my.db 
    4932   epoll_create.pl model AnotherDB DBIC::Schema MyApp::Schema create=static\ 
    50    dbi:Pg:dbname=foo root 4321 
     33   [Loader opts like db_schema, naming] dbi:Pg:dbname=foo root 4321 
     34   [connect_info opts like quote_char, name_sep] 
    5135 
    5236 See also: 
    5337   perldoc Catalyst::Manual 
    5438   perldoc Catalyst::Manual::Intro 
     39   perldoc Catalyst::Helper::Model::DBIC::Schema 
     40   perldoc Catalyst::Model::DBIC::Schema 
     41   perldoc Catalyst::View::TT 
    5542 
    5643=head1 DESCRIPTION 
     
    6249This behavior can be suppressed with the C<-force> option. 
    6350 
    64 =head1 AUTHOR 
     51=head1 AUTHORS 
    6552 
    66 Sebastian Riedel, C<sri@oook.de> 
    67 Maintained by the Catalyst Core Team. 
     53Catalyst Contributors, see Catalyst.pm 
    6854 
    6955=head1 COPYRIGHT 
    7056 
    71 This library is free software, you can redistribute it and/or modify 
     57This library is free software. You can redistribute it and/or modify 
    7258it under the same terms as Perl itself. 
    7359 
  • trunk/script/epoll_fastcgi.pl

    r242 r480  
    1 #!/usr/bin/perl -w 
     1#!/usr/bin/env perl 
    22 
    3 BEGIN { $ENV{CATALYST_ENGINE} ||= 'FastCGI' } 
    4  
    5 use strict; 
    6 use warnings; 
    7 use Getopt::Long; 
    8 use Pod::Usage; 
    9 use FindBin; 
    10 use lib "$FindBin::Bin/../lib"; 
    11 use Epoll; 
    12  
    13 my $help = 0; 
    14 my ( $listen, $nproc, $pidfile, $manager, $detach, $keep_stderr ); 
    15   
    16 GetOptions( 
    17     'help|?'      => \$help, 
    18     'listen|l=s'  => \$listen, 
    19     'nproc|n=i'   => \$nproc, 
    20     'pidfile|p=s' => \$pidfile, 
    21     'manager|M=s' => \$manager, 
    22     'daemon|d'    => \$detach, 
    23     'keeperr|e'   => \$keep_stderr, 
    24 ); 
    25  
    26 pod2usage(1) if $help; 
    27  
    28 Epoll->run(  
    29     $listen,  
    30     {   nproc   => $nproc, 
    31         pidfile => $pidfile,  
    32         manager => $manager, 
    33         detach  => $detach, 
    34         keep_stderr => $keep_stderr, 
    35     } 
    36 ); 
     3use Catalyst::ScriptRunner; 
     4Catalyst::ScriptRunner->run('Epoll', 'FastCGI'); 
    375 
    3861; 
     
    4513 
    4614epoll_fastcgi.pl [options] 
    47   
     15 
    4816 Options: 
    49    -? -help      display this help and exits 
    50    -l -listen    Socket path to listen on 
     17   -? --help      display this help and exit 
     18   -l --listen   socket path to listen on 
    5119                 (defaults to standard input) 
    5220                 can be HOST:PORT, :PORT or a 
    5321                 filesystem path 
    54    -n -nproc     specify number of processes to keep 
     22   -n --nproc    specify number of processes to keep 
    5523                 to serve requests (defaults to 1, 
    56                  requires -listen) 
    57    -p -pidfile   specify filename for pid file 
    58                  (requires -listen) 
    59    -d -daemon    daemonize (requires -listen) 
    60    -M -manager   specify alternate process manager 
     24                 requires --listen) 
     25   -p --pidfile  specify filename for pid file 
     26                 (requires --listen) 
     27   -d --daemon   daemonize (requires --listen) 
     28   -M --manager  specify alternate process manager 
    6129                 (FCGI::ProcManager sub-class) 
    6230                 or empty string to disable 
    63    -e -keeperr   send error messages to STDOUT, not 
     31   -e --keeperr  send error messages to STDOUT, not 
    6432                 to the webserver 
     33   --proc_title  Set the process title (if possible) 
    6534 
    6635=head1 DESCRIPTION 
    6736 
    68 Run a Catalyst application as fastcgi. 
     37Run a Catalyst application as FastCGI. 
    6938 
    70 =head1 AUTHOR 
     39=head1 AUTHORS 
    7140 
    72 Sebastian Riedel, C<sri@oook.de> 
    73 Maintained by the Catalyst Core Team. 
     41Catalyst Contributors, see Catalyst.pm 
    7442 
    7543=head1 COPYRIGHT 
    7644 
    77 This library is free software, you can redistribute it and/or modify 
     45This library is free software. You can redistribute it and/or modify 
    7846it under the same terms as Perl itself. 
    7947 
  • trunk/script/epoll_server.pl

    r242 r480  
    1 #!/usr/bin/perl -w 
     1#!/usr/bin/env perl 
    22 
    3 BEGIN {  
    4     $ENV{CATALYST_ENGINE} ||= 'HTTP'; 
    5     $ENV{CATALYST_SCRIPT_GEN} = 30; 
    6     require Catalyst::Engine::HTTP; 
    7  
    8  
    9 use strict; 
    10 use warnings; 
    11 use Getopt::Long; 
    12 use Pod::Usage; 
    13 use FindBin; 
    14 use lib "$FindBin::Bin/../lib"; 
    15  
    16 my $debug             = 0; 
    17 my $fork              = 0; 
    18 my $help              = 0; 
    19 my $host              = undef; 
    20 my $port              = 3000; 
    21 my $keepalive         = 0; 
    22 my $restart           = 0; 
    23 my $restart_delay     = 1; 
    24 my $restart_regex     = '\.yml$|\.yaml$|\.pm$'; 
    25 my $restart_directory = undef; 
    26  
    27 my @argv = @ARGV; 
    28  
    29 GetOptions( 
    30     'debug|d'             => \$debug, 
    31     'fork'                => \$fork, 
    32     'help|?'              => \$help, 
    33     'host=s'              => \$host, 
    34     'port=s'              => \$port, 
    35     'keepalive|k'         => \$keepalive, 
    36     'restart|r'           => \$restart, 
    37     'restartdelay|rd=s'   => \$restart_delay, 
    38     'restartregex|rr=s'   => \$restart_regex, 
    39     'restartdirectory=s'  => \$restart_directory, 
    40 ); 
    41  
    42 pod2usage(1) if $help; 
    43  
    44 if ( $restart ) { 
    45     $ENV{CATALYST_ENGINE} = 'HTTP::Restarter'; 
    46 } 
    47 if ( $debug ) { 
    48     $ENV{CATALYST_DEBUG} = 1; 
     3BEGIN { 
     4    $ENV{CATALYST_SCRIPT_GEN} = 40; 
    495} 
    506 
    51 # This is require instead of use so that the above environment 
    52 # variables can be set at runtime. 
    53 require Epoll; 
    54  
    55 Epoll->run( $port, $host, { 
    56     argv              => \@argv, 
    57     'fork'            => $fork, 
    58     keepalive         => $keepalive, 
    59     restart           => $restart, 
    60     restart_delay     => $restart_delay, 
    61     restart_regex     => qr/$restart_regex/, 
    62     restart_directory => $restart_directory, 
    63 } ); 
     7use Catalyst::ScriptRunner; 
     8Catalyst::ScriptRunner->run('Epoll', 'Server'); 
    649 
    65101; 
     
    6712=head1 NAME 
    6813 
    69 epoll_server.pl - Catalyst Testserver 
     14epoll_server.pl - Catalyst Test Server 
    7015 
    7116=head1 SYNOPSIS 
     
    7318epoll_server.pl [options] 
    7419 
    75  Options: 
    76    -d -debug          force debug mode 
    77    -f -fork           handle each request in a new process 
    78                       (defaults to false) 
    79    -? -help           display this help and exits 
    80       -host           host (defaults to all) 
    81    -p -port           port (defaults to 3000) 
    82    -k -keepalive      enable keep-alive connections 
    83    -r -restart        restart when files get modified 
    84                       (defaults to false) 
    85    -rd -restartdelay  delay between file checks 
    86    -rr -restartregex  regex match files that trigger 
    87                       a restart when modified 
    88                       (defaults to '\.yml$|\.yaml$|\.pm$') 
    89    -restartdirectory  the directory to search for 
    90                       modified files 
    91                       (defaults to '../') 
     20   -d --debug           force debug mode 
     21   -f --fork            handle each request in a new process 
     22                        (defaults to false) 
     23   -? --help            display this help and exits 
     24   -h --host            host (defaults to all) 
     25   -p --port            port (defaults to 3000) 
     26   -k --keepalive       enable keep-alive connections 
     27   -r --restart         restart when files get modified 
     28                        (defaults to false) 
     29   -rd --restart_delay  delay between file checks 
     30                        (ignored if you have Linux::Inotify2 installed) 
     31   -rr --restart_regex  regex match files that trigger 
     32                        a restart when modified 
     33                        (defaults to '\.yml$|\.yaml$|\.conf|\.pm$') 
     34   --restart_directory  the directory to search for 
     35                        modified files, can be set multiple times 
     36                        (defaults to '[SCRIPT_DIR]/..') 
     37   --follow_symlinks    follow symlinks in search directories 
     38                        (defaults to false. this is a no-op on Win32) 
     39   --background         run the process in the background 
     40   --pidfile            specify filename for pid file 
    9241 
    9342 See also: 
     
    9948Run a Catalyst Testserver for this application. 
    10049 
    101 =head1 AUTHOR 
     50=head1 AUTHORS 
    10251 
    103 Sebastian Riedel, C<sri@oook.de> 
    104 Maintained by the Catalyst Core Team. 
     52Catalyst Contributors, see Catalyst.pm 
    10553 
    10654=head1 COPYRIGHT 
    10755 
    108 This library is free software, you can redistribute it and/or modify 
     56This library is free software. You can redistribute it and/or modify 
    10957it under the same terms as Perl itself. 
    11058 
    11159=cut 
     60 
  • trunk/script/epoll_test.pl

    r242 r480  
    1 #!/usr/bin/perl -w 
     1#!/usr/bin/env perl 
    22 
    3 use strict; 
    4 use warnings; 
    5 use Getopt::Long; 
    6 use Pod::Usage; 
    7 use FindBin; 
    8 use lib "$FindBin::Bin/../lib"; 
    9 use Catalyst::Test 'Epoll'; 
    10  
    11 my $help = 0; 
    12  
    13 GetOptions( 'help|?' => \$help ); 
    14  
    15 pod2usage(1) if ( $help || !$ARGV[0] ); 
    16  
    17 print request($ARGV[0])->content . "\n"; 
     3use Catalyst::ScriptRunner; 
     4Catalyst::ScriptRunner->run('Epoll', 'Test'); 
    185 
    1961; 
     
    2815 
    2916 Options: 
    30    -help    display this help and exits 
     17   --help    display this help and exits 
    3118 
    3219 Examples: 
     
    4229Run a Catalyst action from the command line. 
    4330 
    44 =head1 AUTHOR 
     31=head1 AUTHORS 
    4532 
    46 Sebastian Riedel, C<sri@oook.de> 
    47 Maintained by the Catalyst Core Team. 
     33Catalyst Contributors, see Catalyst.pm 
    4834 
    4935=head1 COPYRIGHT 
    5036 
    51 This library is free software, you can redistribute it and/or modify 
     37This library is free software. You can redistribute it and/or modify 
    5238it under the same terms as Perl itself. 
    5339 
Note: See TracChangeset for help on using the changeset viewer.