Class: HashThatTree::CLI
- Inherits:
-
Thor
- Object
- Thor
- HashThatTree::CLI
- Defined in:
- lib/cli.rb
Overview
This class controls the Command Line Interface
Instance Method Summary collapse
- #compare(folder1, folder2) ⇒ Object
-
#hashit(*folders) ⇒ Object
method_option :recursive, :aliases => “-r”, :type => :boolean, :default => “false”, :desc => “true = recurse through sub directories, false = only do top directory”.
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, ) 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(, folders) htt.create_hash_results dis = Display.new(, htt.error_data, htt.file_data) dis.display_results() end |