Class: CommandT::Scanner::FileScanner::RubyFileScanner

Inherits:
CommandT::Scanner::FileScanner show all
Defined in:
lib/command-t/scanner/file_scanner/ruby_file_scanner.rb

Overview

Pure Ruby implementation of a file scanner.

Constant Summary

Constants inherited from CommandT::Scanner::FileScanner

FileLimitExceeded

Instance Attribute Summary

Attributes inherited from CommandT::Scanner::FileScanner

#path

Instance Method Summary collapse

Methods inherited from CommandT::Scanner::FileScanner

#flush, #initialize, #paths

Methods inherited from CommandT::Scanner

#paths

Constructor Details

This class inherits a constructor from CommandT::Scanner::FileScanner

Instance Method Details

#paths!Object



11
12
13
14
15
16
17
18
19
20
21
# File 'lib/command-t/scanner/file_scanner/ruby_file_scanner.rb', line 11

def paths!
  accumulator = []
  @depth = 0
  @files = 0
  @next_progress = progress_reporter.update(@files)
  add_paths_for_directory(@path, accumulator)
  accumulator
rescue FileLimitExceeded
  show_max_files_warning
  accumulator
end