lib/cli.rb in hash-that-tree-0.1.0 vs lib/cli.rb in hash-that-tree-0.1.1
- old
+ new
@@ -1,19 +1,19 @@
-require 'thor'
-require_relative 'compare'
-
-# Command Line Program that takes two directories and creates a MD5 hash for every file contained within.<br/>
-# It then builds a result set that compares files with the same name and allows for them to be outputted
-# as a csv string
-module HashThatTree
- #This class controls the Command Line Interface
- class CLI < Thor
- #Create a hash of all files in the folders, compare them and output the results in CSV format
- desc "compare FOLDER1 FOLDER2", "Create a hash of all files in the folders, compare them and output the results in the specified format"
- def compare(folder1, folder2, output=:csv)
- htt = CompareMD5.new(folder1, folder2, output)
- htt.compare
- htt.display_results
- end
- end
- CLI.start(ARGV)
+require 'thor'
+require_relative 'compare'
+
+# Command Line Program that takes two directories and creates a MD5 hash for every file contained within.<br/>
+# It then builds a result set that compares files with the same name and allows for them to be outputted
+# as a csv string
+module HashThatTree
+ #This class controls the Command Line Interface
+ class CLI < Thor
+ #Create a hash of all files in the folders, compare them and output the results in CSV format
+ desc "compare FOLDER1 FOLDER2", "Create a hash of all files in the folders, compare them and output the results in the specified format"
+ def compare(folder1, folder2, output=:csv)
+ htt = CompareMD5.new(folder1, folder2, output)
+ htt.compare
+ htt.display_results
+ end
+ end
+ CLI.start(ARGV)
end
\ No newline at end of file