module CheckFiles

Constants

VERSION

Public Class Methods

check!() click to toggle source
# File lib/check_files.rb, line 27
def self.check!
  change = checkers.find(&:changed?)
  config.notifier.call(change) if change
end
checkers() click to toggle source
# File lib/check_files.rb, line 19
def self.checkers
  @checkers ||= config.paths.map {|path| Checker.new(path) }
end
config() click to toggle source
# File lib/check_files.rb, line 15
def self.config
  Rails.application.config.check_files
end
reset() click to toggle source
# File lib/check_files.rb, line 23
def self.reset
  @checkers = nil
end