Mojolicious::Command::Fastcgi - FastCGI Command


Mojolicious documentation Contained in the Mojolicious distribution.

Index


Code Index:

NAME

Top

Mojolicious::Command::Fastcgi - FastCGI Command

SYNOPSIS

Top

  use Mojolicious::Command::Fastcgi;

  my $fastcgi = Mojolicious::Command::Fastcgi->new;
  $fastcgi->run;

DESCRIPTION

Top

Mojolicious::Command::Fastcgi is a command interface to Mojo::Server::FastCGI.

ATTRIBUTES

Top

Mojolicious::Command::FastCGI inherits all attributes from Mojo::Command and implements the following new ones.

description

  my $description = $fastcgi->description;
  $fastcgi        = $fastcgi->description('Foo!');

Short description of this command, used for the command list.

usage

  my $usage = $fastcgi->usage;
  $fastcgi  = $fastcgi->usage('Foo!');

Usage information for this command, used for the help screen.

METHODS

Top

Mojolicious::Command::Fastcgi inherits all methods from Mojo::Command and implements the following new ones.

run

  $fastcgi = $fastcgi->run;

Run this command.

SEE ALSO

Top

Mojolicious, Mojolicious::Guides, http://mojolicio.us.


Mojolicious documentation Contained in the Mojolicious distribution.

package Mojolicious::Command::Fastcgi;
use Mojo::Base 'Mojo::Command';

use Mojo::Server::FastCGI;

has description => <<'EOF';
Start application with FastCGI.
EOF
has usage => <<"EOF";
usage: $0 fastcgi
EOF

# "Interesting... Oh no wait, the other thing, tedious."
sub run {
  my $self    = shift;
  my $fastcgi = Mojo::Server::FastCGI->new;
  $fastcgi->run;
  $self;
}

1;
__END__