Sha256: b530ddc027816ff33ab7caf7605ace23564bad78abbed132ff380b68214c55e3

Contents?: true

Size: 931 Bytes

Versions: 4

Compression:

Stored size: 931 Bytes

Contents

# frozen_string_literal: true

require "neeto_compliance/verifiers/sync_neeto_commons_verifier/bin_files_verifier"
require "neeto_compliance/verifiers/sync_neeto_commons_verifier/formatter_files_verifier"
require "neeto_compliance/verifiers/sync_neeto_commons_verifier/husky_files_verifier"
require "neeto_compliance/verifiers/sync_neeto_commons_verifier/misc_files_verifier"
require "neeto_compliance/verifiers/sync_neeto_commons_verifier/test_support_files_verifier"

module NeetoCompliance
  class SyncNeetoCommonsVerifier < Base
    def valid?
      verifiers = [
        BinFilesVerifier,
        FormatterFilesVerifier,
        HuskyFilesVerifier,
        MiscFilesVerifier,
        TestSupportFilesVerifier
      ]

      results = verifiers.map do |verifier|
        verifier.new.process
      end

      success = results.all?
    end

    def autofix_command
      "bundle exec sync-with-neeto-commons"
    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.rb
neetob-0.1.2 neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier.rb
neetob-0.1.1 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier.rb
neetob-0.1.0 /Users/chiragshah/Workspace/bigbinary/neeto/neetob/neeto_compliance/lib/neeto_compliance/verifiers/sync_neeto_commons_verifier.rb