Sha256: 1d4e2f2681a37d3ef651be840c0457925e18b1ac687de158559bd39ebea5de80

Contents?: true

Size: 713 Bytes

Versions: 4

Compression:

Stored size: 713 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 FormatterFilesVerifier
      def process
        non_complied_formatter_files = find_non_complied_formatter_files

        return false if non_complied_formatter_files.any?

        true
      end

      private

        def find_non_complied_formatter_files
          NeetoCompliance::SyncNeetoCommons::SyncFormatters.CONFIG_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/formatter_files_verifier.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/formatter_files_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/formatter_files_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier/formatter_files_verifier.rb