Module: Herbert::Utils
- Defined in:
- lib/herbert/Utils.rb
Defined Under Namespace
Modules: Helpers
Class Method Summary collapse
-
.version ⇒ Object
Assert v<major>.<minor>.<etc> tags.
Class Method Details
.version ⇒ Object
Assert v<major>.<minor>.<etc> tags
4 5 6 7 8 |
# File 'lib/herbert/Utils.rb', line 4 def self.version version = `git describe --long`.strip version[0] = '' if version[0] == 'v' version end |