Module: Strelka::CMS

Extended by:
Configurability, Loggability
Defined in:
lib/strelka/cms.rb

Overview

Toplevel namespace of the Strelka CMS class library

Constant Summary collapse

VERSION =

Version string

'0.3.0'
REVISION =

Version-control revision constant

%q$Revision: e9f738cb50e0 $

Class Method Summary collapse

Class Method Details

.version_string(include_buildnum = false) ⇒ Object

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



35
36
37
38
39
# File 'lib/strelka/cms.rb', line 35

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