#!/usr/bin/perl

use strict;
use warnings;
use App::VW;

unshift @ARGV, 'help' unless (@ARGV);
App::VW->dispatch;

=head1 NAME

vw - a deployment system for Squatting apps

=head1 SYNOPSIS

Usage:

  vw <COMMAND> [OPTION]...

=head1 DESCRIPTION

C<vw> is the front-end to L<App::VW> which is a deployment system for Squatting
apps.

=head1 SUBCOMMANDS

=head2 help [SUBCOMMAND]

Invoked by itself, it displays a list of subcommands.

  vw help

If given a subcommand, it'll display an abbreviated version of that
subcommand's documentation.

  vw help install

=head2 install

The install command copies an init script to F</etc/init.d/vw> and creates
a directory for configuration files called F</etc/vw>.

  sudo vw install

=head2 setup <App> [OPTION]...

This command is used to setup a Squatting app for deployment through C<vw>.
You should go to the directory your Squatting app will be run from and
run this command.

B<Example>: Setting up the ChatterBox app on port 5000

  cd /www/chatterbox.com
  sudo vw setup ChatterBox --port 5000

=head2 start

This is the same as: C</etc/init.d/vw start>.

=head2 stop

This is the same as: C</etc/init.d/vw start>.

=head2 restart

This is the same as: C</etc/init.d/vw stop>.

=head1 SEE ALSO

L<App::VW>, L<vw-bus>

=head1 AUTHOR

John BEPPU E<lt>beppu@cpan.orgE<gt>

=head1 COPYRIGHT

Copyright (c) 2008 John BEPPU E<lt>beppu@cpan.orgE<gt>.

=head2 The "MIT" License

Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation
files (the "Software"), to deal in the Software without
restriction, including without limitation the rights to use,
copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the
Software is furnished to do so, subject to the following
conditions:

The above copyright notice and this permission notice shall be
included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
OTHER DEALINGS IN THE SOFTWARE.

=cut