Skip to content

Commit

Permalink
Add "Release"
Browse files Browse the repository at this point in the history
  • Loading branch information
simaishi committed Jul 19, 2019
1 parent 0d1ce4a commit 30fa800
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions lib/vmdb/appliance.rb
Expand Up @@ -14,6 +14,11 @@ def self.CODENAME
"Ivanchuk".freeze
end

def self.RELEASE
release_file = File.join(File.expand_path(Rails.root), "RELEASE")
File.exist?(release_file) ? File.read(release_file).strip : self.CODENAME
end

def self.BANNER
"#{self.PRODUCT_NAME} #{self.VERSION}, codename: #{self.CODENAME}"
end
Expand Down Expand Up @@ -57,6 +62,7 @@ def self.log_config(*args)
fh.info(init_msg)
fh.info(border)

fh.info("Release: #{self.RELEASE}")
fh.info("Version: #{self.VERSION}")
fh.info("Build: #{self.BUILD}")
fh.info("Codename: #{self.CODENAME}")
Expand Down

0 comments on commit 30fa800

Please sign in to comment.