module Strelka::CMS

Toplevel namespace of the Strelka CMS class library

Constants

REVISION

Version-control revision constant

VERSION

Version string

Public Class Methods

version_string( include_buildnum=false ) click to toggle source

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

# File lib/strelka/cms.rb, line 34
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