Sha256: ecb452c58e81a447d7a311ade5107499132866cc98e11700fbca7de37a7a570a
Contents?: true
Size: 1.57 KB
Versions: 1
Compression:
Stored size: 1.57 KB
Contents
#!/usr/bin/env ruby require 'strelka' # A web adminstration front end to a Strelka+Mongrel2 webserver. # # == Author/s # # * Michael Granger <ged@FaerieMUD.org> # module Strelka::Admin # Library version constant VERSION = '0.0.1' # Version-control revision constant REVISION = %q$Revision: 650a62ddd8a2 $ # The data directory in the project if that exists, otherwise the gem datadir DATADIR = if File.directory?( 'data/strelka' ) Pathname( 'data/strelka' ) elsif path = Gem.datadir('strelka') Pathname( path ) else raise ScriptError, "can't find the data directory!" end # The default path to the Mongrel2 server config database DEFAULT_MONGREL2_DB = DATADIR + '.sqlite' # The default path to the admin app's templates DEFAULT_TEMPLATE_PATH = [ DATADIR + 'templates' ] # Default admin config values ADMIN_CONFIG_DEFAULTS = { mongrel2: { configdb: DEFAULT_MONGREL2_DB.to_s }, templates: { template_paths: DEFAULT_TEMPLATE_PATH, }, } # Unified config for the admin application DEFAULT_ADMIN_CONFIG = DATADIR + 'admin.conf' # The ID of the adminserver in the mongrel2 config ADMINSERVER_ID = 'strelka-admin' # The ID of the Mongrel2 configuration REST service CONFIGSERVICE_ID = 'config-service' ### Get the library version. If +include_buildnum+ is true, the version string will ### include the VCS rev ID. def self::version_string( include_buildnum=false ) vstring = "%s %s" % [ self.name, VERSION ] vstring << " (build %s)" % [ REVISION[/: ([[:xdigit:]]+)/, 1] || '0' ] if include_buildnum return vstring end end # module Strelka::Admin
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
strelka-admin-0.0.1.pre7 | lib/strelka/admin.rb |