Sha256: 596832de3c39f14906c05951ffd322ecc75d0338c295785a604ab2af358a8201

Contents?: true

Size: 687 Bytes

Versions: 4

Compression:

Stored size: 687 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 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

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/husky_files_verifier.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/husky_files_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/husky_files_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/husky_files_verifier.rb