class Repokeeper::CLI
Public Class Methods
create_analyzer(path, config_file, formatter_class)
click to toggle source
# File lib/repokeeper/cli.rb, line 46 def self.create_analyzer(path, config_file, formatter_class) formatter = formatter_class.new analyzers = Analyzers::Analyzer.all proxy = RepoProxy.new(path) config = Config.read(config_file) RepoAnalyzer.new(proxy, formatter, analyzers, config) end
formatter_class_by_name(name)
click to toggle source
# File lib/repokeeper/cli.rb, line 38 def self.formatter_class_by_name(name) if name && !name.empty? const_get(name) else SimpleTextFormatter end end
rev_range(rev_spec)
click to toggle source
# File lib/repokeeper/cli.rb, line 56 def self.rev_range(rev_spec) parser = RevParser.new(rev_spec) parser.parse parser.range end