#!/usr/bin/perl

# ABSTRACT: provide a web interface to a Pinto repository
# PODNAME: pinto-server

use strict;
use warnings;

#-----------------------------------------------------------------------------

our $VERSION = '0.001'; # VERSION

#-----------------------------------------------------------------------------

use Pinto::Server;
use Dancer::GetOpt;
use Dancer;

Dancer::GetOpt->process_args();
Dancer::dance;

#-----------------------------------------------------------------------------



=pod

=for :stopwords Jeffrey Ryan Thalhammer Imaginative Software Systems

=head1 NAME

pinto-server - provide a web interface to a Pinto repository

=head1 VERSION

version 0.001

=head1 SYNOPSIS

First, create a config file at F<~/.pinto/config.ini>:

  # Required.  This is where your repository will live
  local = /some/directory

Then start L<pinto-server> (assume the host name is 'tatooine'):

   $> pinto-server

Then use L<pinto-remote> to put some stuff in your repository

   $> pinto-remote --host=http://tatooine:5000 add Foo-Bar.tar.gz

Finally, use L<cpanm> to install stuff from your repository

  $> cpanm --mirror=http://tatooine:5000 Foo::Bar

=head1 DESCRIPTION

L<pinto-server> is the utility program for starting the
L<Pinto::Server>.  At the moment, L<pinto-server> is based on
L<Dancer>, so it supports whatever command-line switches that
L<Dancer::GetOpt> provides.  Say C<pinto-server --help> to get a
listing of the available options.

=head1 AUTHOR

Jeffrey Ryan Thalhammer <jeff@imaginative-software.com>

=head1 COPYRIGHT AND LICENSE

This software is copyright (c) 2011 by Imaginative Software Systems.

This is free software; you can redistribute it and/or modify it under
the same terms as the Perl 5 programming language system itself.

=cut


__END__


