[Catalyst-commits] r10788 - Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script

dhoss at dev.catalyst.perl.org dhoss at dev.catalyst.perl.org
Sat Jul 4 00:49:39 GMT 2009


Author: dhoss
Date: 2009-07-04 00:49:39 +0000 (Sat, 04 Jul 2009)
New Revision: 10788

Modified:
   Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
Log:
doez haz pidfile short opt


Modified: Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm
===================================================================
--- Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm	2009-07-04 00:45:19 UTC (rev 10787)
+++ Catalyst-Runtime/5.80/branches/better_scripts/lib/Catalyst/Script/Server.pm	2009-07-04 00:49:39 UTC (rev 10788)
@@ -24,7 +24,12 @@
     default => 0,  
 );
 
-has host            => ( isa => 'Str',    is => 'ro', required => 0, default =>  "localhost" );
+has host => ( 
+    isa => 'Str',    
+    is => 'ro', 
+    required => 0, 
+    default =>  "localhost" 
+);
 
 has fork => ( 
     traits => [qw(Getopt)],
@@ -43,7 +48,14 @@
     default => "3000" 
 );
 
-has pidfile         => ( isa => 'Str',    is => 'ro', required => 0 );
+has pidfile => ( 
+    traits => [qw(Getopt)],
+    cmd_aliases => 'pf',
+    isa => 'Str',    
+    is => 'ro', 
+    required => 0 
+);
+
 has keepalive       => ( isa => 'Bool',   is => 'ro', required => 0, default => 0 );
 has background      => ( isa => 'Bool',   is => 'ro', required => 0 );
 has app             => ( isa => 'Str',    is => 'ro', required => 1 );




More information about the Catalyst-commits mailing list