From: Tomas Doran Date: Fri, 20 Nov 2009 00:45:13 +0000 (+0000) Subject: Pass Pod coverage X-Git-Tag: 5.80014_02~43 X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?p=catagits%2FCatalyst-Runtime.git;a=commitdiff_plain;h=12aa6ca498dc2e3e37277388245d0b198677e8fe Pass Pod coverage --- diff --git a/lib/Catalyst/ScriptRole.pm b/lib/Catalyst/ScriptRole.pm index dd0a7d5..bea26de 100644 --- a/lib/Catalyst/ScriptRole.pm +++ b/lib/Catalyst/ScriptRole.pm @@ -75,11 +75,35 @@ Catalyst::ScriptRole - Common functionality for Catalyst scripts. =head1 SYNOPSIS - FIXME + package MyApp::Script::Foo; + use Moose; + use namespace::autoclean; + + with 'Catalyst::Script::Role'; + + sub _application_args { ... } =head1 DESCRIPTION - FIXME +Role with the common functionality of Catalyst scripts. + +=head1 METHODS + +=head2 run + +The method invoked to run the application. + +=head1 ATTRIBUTES + +=head2 application_name + +The name of the application class, e.g. MyApp + +=head1 SEE ALSO + +L + +L =head1 AUTHORS diff --git a/lib/Catalyst/ScriptRunner.pm b/lib/Catalyst/ScriptRunner.pm index 08fd66e..63d153d 100644 --- a/lib/Catalyst/ScriptRunner.pm +++ b/lib/Catalyst/ScriptRunner.pm @@ -38,6 +38,13 @@ Catalyst::ScriptRunner - The Catalyst Framework script runner This class is responsible for running scripts, either in the application specific namespace (e.g. C), or the Catalyst namespace (e.g. C) +=head1 METHODS + +=head2 run ($application_class, $scriptclass) + +Called with two parameters, the application classs (e.g. MyApp) +and the script class, (i.e. one of Server/FastCGI/CGI/Create/Test) + =head1 AUTHORS Catalyst Contributors, see Catalyst.pm