Class: Jekyll::SvnversionGenerator
- Inherits:
-
Generator
- Object
- Generator
- Jekyll::SvnversionGenerator
- Defined in:
- jekyll/_plugins/svnversion.rb
Instance Method Summary collapse
Instance Method Details
#generate(site) ⇒ Object
3 4 5 6 7 |
# File 'jekyll/_plugins/svnversion.rb', line 3 def generate(site) Dir.chdir(site.source) do site.config['svnversion'] = `/usr/local/bin/svnversion -n || svnversion -n || true` end end |