Module: Fingerprint
- Defined in:
- lib/fingerprint.rb,
lib/fingerprint/checker.rb,
lib/fingerprint/scanner.rb,
lib/fingerprint/version.rb
Defined Under Namespace
Modules: VERSION Classes: Checker, Scanner
Constant Summary collapse
- DEFAULT_EXCLUDES =
The default pattern for excluding files.
[/\/\.[^\/]+$/, /\~$/]
Class Method Summary collapse
-
.check_paths(master_path, copy_path, &block) ⇒ Object
A helper function to check two paths for consistency.
Class Method Details
.check_paths(master_path, copy_path, &block) ⇒ Object
A helper function to check two paths for consistency. Provides callback from Fingerprint::Checker
.
27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/fingerprint.rb', line 27 def self.check_paths(master_path, copy_path, &block) master = Scanner.new([master_path]) copy = Scanner.new([copy_path]) master.scan copy.scan master.output.seek(0) copy.output.seek(0) checker = Checker.new(master.output, copy.output) checker.check(&block) return checker end |