# frozen_string_literal: true require "net/http" require "json" require "yaml" require "neeto_compliance/sync_neeto_commons" module NeetoCompliance class SyncNeetoCommonsVerifier < Base class HuskyFilesVerifier def process non_complied_husky_files = find_non_complied_husky_files return false if non_complied_husky_files.any? true end private def find_non_complied_husky_files NeetoCompliance::SyncNeetoCommons::SyncHusky.HUSKY_FILES.select do |file| !system("cat #{NeetoCompliance::SyncNeetoCommons.neeto_commons_url}#{file} | diff #{file} - 1> /dev/null") end end end end end