Class: Snuffle::CLI
- Inherits:
-
Thor
- Object
- Thor
- Snuffle::CLI
- Defined in:
- lib/snuffle/cli.rb
Instance Attribute Summary collapse
-
#last_file ⇒ Object
Returns the value of attribute last_file.
Instance Method Summary collapse
Instance Attribute Details
#last_file ⇒ Object
Returns the value of attribute last_file.
24 25 26 |
# File 'lib/snuffle/cli.rb', line 24 def last_file @last_file end |
Instance Method Details
#check(path = "./") ⇒ Object
9 10 11 12 13 14 15 16 17 18 19 20 |
# File 'lib/snuffle/cli.rb', line 9 def check(path="./") summaries = [] file_list(path).each do |path_to_file| puts "Checking #{path_to_file}..." Snuffle::Node.delete_all summary = Snuffle::SourceFile.new(path_to_file: path_to_file).summary html_report(summary, summary.source) summaries << summary end create_html_index(summaries, path) puts "Results written to #{results_files.last}" end |