Sha256: 21ebfe28daa4b4e4b9c1cfccf47e1f9ec73b70690653bb6511bf334c232aa8eb
Contents?: true
Size: 464 Bytes
Versions: 6
Compression:
Stored size: 464 Bytes
Contents
require 'csv' module FilePolice def self.version FilePolice::VERSION end # Patrol a directory and return tickets for any violations def self.patrol path, tickets = Array.new Dir.glob(File.join(path, "**/*")).each do |file| tickets << Ticket.new(File.basename(file), FilePolice::BacklogFile.new(file).errors) unless File.directory?(file) end return tickets end end require 'file_police/backlog_file' require 'file_police/ticket'
Version data entries
6 entries across 6 versions & 1 rubygems