# Copyright (C) 2008-2009, Sebastian Riedel.

package Mojo::Script::Fastcgi;

use strict;
use warnings;

use base 'Mojo::Script';

use Mojo::Server::FastCGI;

__PACKAGE__->attr('description', default => <<'EOF');
* Start the fastcgi script. *
Takes no options.
    fastcgi
EOF

# Oh boy! Sleep! That's when I'm a Viking!
sub run {
    Mojo::Server::FastCGI->new->run;
    return shift;
}

1;
__END__

=head1 NAME

Mojo::Script::Fastcgi - FastCGI Script

=head1 SYNOPSIS

    use Mojo::Script::Fastcgi;

    my $fastcgi = Mojo::Script::Fastcgi->new;
    $fastcgi->run(@ARGV);

=head1 DESCRIPTION

L<Mojo::Script::Fastcgi> is a script interface to L<Mojo::Server::FastCGI>.

=head1 ATTRIBUTES

L<Mojo::Script::FastCGI> inherits all attributes from L<Mojo::Script> and
implements the following new ones.

=head2 C<description>

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

=head1 METHODS

L<Mojo::Script::Fastcgi> inherits all methods from L<Mojo::Script> and
implements the following new ones.

=head2 C<run>

    $fastcgi = $fastcgi->run(@ARGV);

=cut
