Module: ASConstants
- Defined in:
- common/asconstants.rb
Overview
will be adding this file to .gitignore the version and schema_info values should be updated with the ant dist task
Defined Under Namespace
Modules: Repository
Class Method Summary (collapse)
-
+ (Object) SCHEMA_INFO
Schema Info is a number set by the migration process.
-
+ (Object) VERSION
Class Method Details
+ (Object) SCHEMA_INFO
Schema Info is a number set by the migration process. We need to store what this value is supposed to be and check it against the value that’s stored in the db post-migration. Backend will not start if this value is off.
42 43 44 45 46 |
# File 'common/asconstants.rb', line 42 def self.SCHEMA_INFO return @SCHEMA_INFO if @SCHEMA_INFO # this gets changed by dist ant task @SCHEMA_INFO = 66 end |
+ (Object) VERSION
[View source]
20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 |
# File 'common/asconstants.rb', line 20 def self.VERSION return @VERSION if @VERSION begin version = java.lang.ClassLoader.getSystemClassLoader.getResourceAsStream("ARCHIVESSPACE_VERSION") if version @VERSION = version.to_io.read.strip else # some servlet containers have a hard time finding the resource... # fallback_version variable gets changed in dist ant task . The a is # just a cue that we're using this.. fallback_version = "v1.4.5-dev18.a" @VERSION = fallback_version end rescue @VERSION = "NO VERSION" end end |