Class: Marty::Diagnostic::Version
- Inherits:
-
Base
show all
- Defined in:
- lib/marty/diagnostic/version.rb
Class Method Summary
collapse
Methods inherited from Base
get_final_attrs, get_struct_attrs, make_hash, make_openstruct, mcfly_pt
joins, old_joins
Class Method Details
.db_schema ⇒ Object
40
41
42
43
44
|
# File 'lib/marty/diagnostic/version.rb', line 40
def self.db_schema
Database.db_schema
rescue StandardError => e
error(e.message)
end
|
.git_tag ⇒ Object
3
4
5
6
7
|
# File 'lib/marty/diagnostic/version.rb', line 3
def self.git_tag
git_tag = `cd #{Rails.root}; git describe --tags --always --abbrev=7;`.strip
git_datetime = `cd #{Rails.root}; git log -1 --format=%cd;`.strip
"#{git_tag} (#{git_datetime})"
end
|