Class: Jacky::Git
- Inherits:
-
Object
- Object
- Jacky::Git
- Defined in:
- lib/jacky/git.rb
Class Method Summary collapse
Class Method Details
.version ⇒ Object
3 4 5 |
# File 'lib/jacky/git.rb', line 3 def self.version @version ||= `git --git-dir="#{Rails.root.join(".git")}" --work-tree="#{Rails.root}" log -1 --date=short --format="%ad-%h"`.gsub('-', '.').chomp end |