Sha256: 58dc517e2651d12675dcb7059d8f807d31846e1a2ba023718f1a1b2346a35c94
Contents?: true
Size: 381 Bytes
Versions: 1
Compression:
Stored size: 381 Bytes
Contents
module Adminix module Services module LogsService def self.add_logs(watcher, _path, lines) logs = lines.map { |l| Entities::Log.new(l) } watcher.service.add_logs(logs) diff = Adminix.config.data_storage_limit[:logs] - watcher.service.logs.count watcher.service.shift_logs(diff.abs) if diff < 0 end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
adminix-0.2 | lib/adminix/services/logs_service.rb |