Class: HashThatTree::CLI

Inherits:
Thor
  • Object
show all
Defined in:
lib/cli.rb

Overview

This class controls the Command Line Interface

Instance Method Summary collapse

Instance Method Details

#compare(folder1, folder2) ⇒ Object



15
16
17
18
19
# File 'lib/cli.rb', line 15

def compare(folder1, folder2)
  htt = CompareMD5.new(folder1, folder2, options)
  htt.compare
  htt.display_results
end

#hashit(*folders) ⇒ Object

method_option :recursive, :aliases => “-r”, :type => :boolean, :default => “false”, :desc => “true = recurse through sub directories, false = only do top directory”



26
27
28
29
30
31
# File 'lib/cli.rb', line 26

def hashit(*folders)
  htt = HashIt.new(options, folders)
  htt.create_hash_results
  dis = Display.new(options, htt.error_data, htt.file_data)
  dis.display_results()
end