Sha256: 047232132a6ef3cd17d175891de99b3c786b52a1d59dafe9f8e493139da3a0b4

Contents?: true

Size: 673 Bytes

Versions: 4

Compression:

Stored size: 673 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 BinFilesVerifier
      def process
        non_complied_bin_files = find_non_complied_bin_files

        return false if non_complied_bin_files.any?

        true
      end

      private

        def find_non_complied_bin_files
          NeetoCompliance::SyncNeetoCommons::SyncBin.BIN_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/bin_files_verifier.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/bin_files_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/bin_files_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/bin_files_verifier.rb