From 5e67a6629a6bc18aa453b73e4244df84a95bd6e6 Mon Sep 17 00:00:00 2001 From: booboy Date: Sun, 12 May 2019 00:54:45 -0500 Subject: [PATCH] more psuedocode on how i want to lay this out. its late and i need to sleep --- classes/nvd_downloader.rb | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/classes/nvd_downloader.rb b/classes/nvd_downloader.rb index 365e267..58ecbe3 100644 --- a/classes/nvd_downloader.rb +++ b/classes/nvd_downloader.rb @@ -64,7 +64,15 @@ class NvdDownloader # the modified filename with the meta file extension included end + def check_metafile(metafile) + # open the metafile, build a hash of k/v pairs of the data inside of the file + # check each k/v pair against the file on disk + # return a new hash with the same k as before, but the value being a boolean true or false if the value from the k/v pair + end + def detect_changes(metafile) # this should be a method that detects changes in the metafile. + # run the check_metafile method against the current metafile on disk. + # if there is a change, return true, if not return false end end \ No newline at end of file