Class: CodePoetry::CLI
- Inherits:
-
Object
- Object
- CodePoetry::CLI
- Defined in:
- lib/code_poetry/cli.rb
Constant Summary collapse
- DIRECOTRIES =
'app,lib'- EXTENSIONS =
'rb,rake'
Class Method Summary collapse
Class Method Details
.excecute(path) ⇒ Object
11 12 13 14 15 16 17 18 |
# File 'lib/code_poetry/cli.rb', line 11 def self.excecute(path) files = Array((path).sort).compact calculator = Calculator.new(files) stats = calculator.calculate formatter = CodePoetry::Formatter::HTMLFormatter.new formatter.format(stats) end |