Class: Jekyll::ProjectVersionTag
- Inherits:
-
Liquid::Tag
- Object
- Liquid::Tag
- Jekyll::ProjectVersionTag
- Defined in:
- lib/project_version_tag.rb
Constant Summary collapse
- NO_GIT_MESSAGE =
'Oops, are you sure this is a git project?'
- UNABLE_TO_PARSE_MESSAGE =
'Sorry, could not read project version at the moment'
Instance Method Summary collapse
Instance Method Details
#render(context) ⇒ Object
6 7 8 9 10 11 12 |
# File 'lib/project_version_tag.rb', line 6 def render(context) if git_repo? current_version.chomp else NO_GIT_MESSAGE end end |