Class: Gloo::App::Info

Inherits:
GlooLang::App::Info
  • Object
show all
Defined in:
lib/gloo/app/info.rb

Constant Summary collapse

VERSION =
Gloo::App::Info.get_version
APP_NAME =
'Gloo'.freeze

Class Method Summary collapse

Class Method Details

.display_titleObject

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_versionObject

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