Sha256: 5d31c185181deee3b55214e40e9e1b66bb0c28352755f5db3617bb9d90833bdf
Contents?: true
Size: 832 Bytes
Versions: 3
Compression:
Stored size: 832 Bytes
Contents
# frozen_string_literal: true module NeetoCompliance class Runner def verifiers app_name == "neeto-auth-web" ? VerifiersList.neeto_auth : VerifiersList.neeto_apps end def process results = verifiers.map do |verifier| verifier.new.process end results.all? ? exit(0) : exit(1) end def auto_correct puts "Running auto_correct ...".yellow results = verifiers.map do |verifier| verifier.new.auto_correct! end puts %( Auto fixing got completed \n Please run bundle exec neeto-audit once again to fix other errors manually if any \n ).yellow results.all? ? exit(0) : exit(1) end def app_name @_app_name ||= `git config --get remote.origin.url`.split("/").last.strip.split(".git").first end end end
Version data entries
3 entries across 3 versions & 1 rubygems