Sha256: 94fe216acb93c51490881c551251a0b60070096561872b0cea1efe9d8849cbe0
Contents?: true
Size: 465 Bytes
Versions: 4
Compression:
Stored size: 465 Bytes
Contents
require 'wisper' module Riserva::Listeners class ApplicationListener attr_reader :files def initialize @files = Set.new end def ok(file) @files << Pathname.new(file) Riserva.logger.info(progname) { "OK: #{file}" } end def failed(file = nil) Riserva.logger.error(progname) { ['Failed', file].compact.join(': ') } end protected def progname self.class.name.split('::').last end end end
Version data entries
4 entries across 4 versions & 1 rubygems