Sha256: caaf81369b06080951411de830803a2f83276f9ffaf4900e59bb178575a9dda1

Contents?: true

Size: 680 Bytes

Versions: 4

Compression:

Stored size: 680 Bytes

Contents

# frozen_string_literal: true

require "net/http"
require "json"
require "yaml"

require "neeto_compliance/sync_neeto_commons"

module NeetoCompliance
  class SyncNeetoCommonsVerifier < Base
    class MiscFilesVerifier
      def process
        non_complied_misc_files = find_non_complied_misc_files

        return false if non_complied_misc_files.any?

        true
      end

      private

        def find_non_complied_misc_files
          NeetoCompliance::SyncNeetoCommons::SyncMisc.MISC_FILES.select do |file|
            !system("cat #{NeetoCompliance::SyncNeetoCommons.neeto_commons_url}#{file} | diff #{file} - 1> /dev/null")
          end
        end
    end
  end
end

Version data entries

4 entries across 4 versions & 2 rubygems

Version Path
neeto-compliance-1.0.58 lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/misc_files_verifier.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/misc_files_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/misc_files_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/misc_files_verifier.rb