module Hyrax
  class RepositoryFixityCheckService
    def self.fixity_check_everything
      ::FileSet.find_each do |gf|
        Hyrax::FileSetFixityCheckService.new(gf).fixity_check
      end
    end
  end
end

module Hyrax
  class RepositoryFixityCheckService
    # This is a service that folks can use in their own rake tasks,
    # etc. It is not otherwise called or relied upon in Hyrax.
    # @see https://github.com/samvera/hyrax/wiki/Hyrax-Management-Guide#fixity-checking
    def self.fixity_check_everything
      ::FileSet.find_each do |file_set|
        Hyrax::FileSetFixityCheckService.new(file_set).fixity_check
      end
    end
  end
end

Improve comment in fixity check service
Improve comment in fixity check service
