Class: Repokeeper::CLI
- Inherits:
-
Object
- Object
- Repokeeper::CLI
- Includes:
- Methadone::CLILogging, Methadone::Main
- Defined in:
- lib/repokeeper/cli.rb
Class Method Summary collapse
- .create_analyzer(path, config_file, formatter_class) ⇒ Object
- .formatter_class_by_name(name) ⇒ Object
- .rev_range(rev_spec) ⇒ Object
Class Method Details
.create_analyzer(path, config_file, formatter_class) ⇒ Object
46 47 48 49 50 51 52 53 54 |
# 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) ⇒ Object
38 39 40 41 42 43 44 |
# 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 |