Mongrel2

module
Included Modules
Mongrel2::Constants
Extended With
Loggability

A Mongrel2 connector and configuration library for Ruby.

Author/s

A collection of constants and functions for testing Mongrel2 applications, as well as Mongrel2 itself.

Constants

Config

Initialize the Cozy::Postgres::Model class as an abstract model class (i.e., without a default dataset). This prevents it from looking for a table called `models`, and makes inheriting it more straightforward. Thanks to Jeremy Evans for the suggestion.

REVISION

Version-control revision constant

VERSION

Library version constant

Public Class Methods

anchor
Config( source )

Factory method that creates subclasses of Mongrel2::Config.

# File lib/mongrel2/config.rb, line 265
def self::Config( source )
        return Mongrel2::Config.Model( source )
end
anchor
version_string( include_buildnum=false )

Get the library version. If include_buildnum is true, the version string will include the VCS rev ID.

# File lib/mongrel2.rb, line 36
def self::version_string( include_buildnum=false )
        vstring = "Ruby-Mongrel2 %s" % [ VERSION ]
        vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum
        return vstring
end