Class: Gloo::App::Info
- Inherits:
-
GlooLang::App::Info
- Object
- GlooLang::App::Info
- Gloo::App::Info
- Defined in:
- lib/gloo/app/info.rb
Constant Summary collapse
- VERSION =
Gloo::App::Info.get_version
- APP_NAME =
'Gloo'.freeze
Class Method Summary collapse
-
.display_title ⇒ Object
Get the application display title.
-
.get_version ⇒ Object
Load the version from the VERSION file.
Class Method Details
.display_title ⇒ Object
Get the application display title.
29 30 31 |
# File 'lib/gloo/app/info.rb', line 29 def self.display_title return "#{APP_NAME}, version #{VERSION}" end |
.get_version ⇒ Object
Load the version from the VERSION file.
16 17 18 19 20 21 |
# File 'lib/gloo/app/info.rb', line 16 def self.get_version f = File.dirname( File.absolute_path( __FILE__ ) ) f = File.dirname( File.dirname( f ) ) f = File.join( f, 'VERSION' ) return File.read( f ) end |