Module: GitPm
- Defined in:
- lib/git_pm.rb,
lib/git_pm/git.rb,
lib/git_pm/commits_by_dev.rb,
lib/git_pm/lines_by_author.rb,
lib/git_pm/commits_per_month.rb
Defined Under Namespace
Classes: CommitsByDev, CommitsPerMonth, Git, LinesByAuthor
Class Method Summary collapse
Class Method Details
.script(id, opts) ⇒ Object
20 21 22 23 24 25 26 27 28 29 |
# File 'lib/git_pm.rb', line 20 def self.script(id, opts) case id when "lines-by-author" GitPm::LinesByAuthor.new(opts) when "commits-per-month" GitPm::CommitsPerMonth.new(opts) when "commits-by-dev" GitPm::CommitsByDev.new(opts) end end |