Module: Rubbr::Scm
- Defined in:
- lib/rubbr/scm.rb,
lib/rubbr/scm/mercurial.rb,
lib/rubbr/scm/subversion.rb
Overview
Extracts changeset stats from various SCM systems. This info can be included in the title page of the latex document and is especially helpful when working with draft versions.
Defined Under Namespace
Classes: Base, Mercurial, Subversion
Class Method Summary collapse
Class Method Details
.stats(dir) ⇒ Object
26 27 28 29 30 31 32 |
# File 'lib/rubbr/scm.rb', line 26 def self.stats(dir) if File.exists? File.join(dir, '.svn') Rubbr::Scm::Subversion.new.collect_scm_stats elsif File.exists? File.join(dir, '.hg') Rubbr::Scm::Mercurial.new.collect_scm_stats end end |