You are looking at historical revision 19442 of this page. It may differ significantly from its current revision.

trunk

Introduction

A program that serves eggs from a local tree or Subversion repository over HTTP.

Usage

Invoke henrietta on the command-line, like this:

 usage: henrietta [OPTION ...]
 
   -h   -help                    show this message
        -query QUERYSTRING       supply query-string on the command-line
        -remote REMOTEADDR       supply remote address on the command-line
   -l   -location LOCATION       install from given location (default: current directory)
   -t   -transport TRANSPORT     use given transport instead of default (#{*default-transport*})
        -username USER           set username for transports that require this
        -password PASS           set password for transports that require this

henrietta is intended to be used as a CGI program and takes a query string and remote address as arguments, either using the command-line options -query and -remote or by setting the QUERY_STRING and REMOTE_ADDR environment variables.

The query string should contain any of the following parameters:

name
specifies the name of the requested extension
version
specifies what version should be retrieved
tests
if non-empty, also include test-files in the retrieved data
list
just list all available extensions
listversions
list available versions for the extension given in name
mode
run in special mode, which may be meta or default.

meta mode will only retrieve the .meta (specification) file, default mode will retrieve the complete extension code.

Example CGI Script

#!/bin/sh

# change these to suitable values on your machine:
export HENRIETTA=/home/chicken/henrietta
export EGG_REPOSITORY=https://localhost/svn/chicken-eggs/release/4
export LOGFILE=/home/chicken/henrietta.log
export USERNAME=anonymous
export PASSWORD=

exec "$HENRIETTA" -l "$EGG_REPOSITORY" -t svn -username "$USERNAME" \
  -password "$PASSWORD" 2>>"$LOGFILE"

Author

felix winkelmann

License

 Copyright (c) 2010, Felix L. Winkelmann
 All rights reserved.
 
 Redistribution and use in source and binary forms, with or without
 modification, are permitted provided that the following conditions
 are met:
 1. Redistributions of source code must retain the above copyright
    notice, this list of conditions and the following disclaimer.
 2. Redistributions in binary form must reproduce the above copyright
    notice, this list of conditions and the following disclaimer in the
    documentation and/or other materials provided with the distribution.
 3. The name of the authors may not be used to endorse or promote products
    derived from this software without specific prior written permission.
 
 THIS SOFTWARE IS PROVIDED BY THE AUTHORS ``AS IS'' AND ANY EXPRESS OR
 IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
 OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
 IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY DIRECT, INDIRECT,
 INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
 NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
 DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
 THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
 THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
 

Version History

0.2
packaged as an egg, added -query and -remote options and support for listing versions
0.1
initial release