Sha256: 08f6f7283b85192d959640fa717f339933df3b84ed8d4a0282db2f2049346cf6
Contents?: true
Size: 469 Bytes
Versions: 3
Compression:
Stored size: 469 Bytes
Contents
class Mangos::Processor def initialize(package) @package = package @original_mtime = @package.data_path.exist? ? @package.data_path.mtime : 0 end def create(path) Mangos::Book.new.tap { |book| Mangos::BookUpdater.new(@package, book, path).update } end def update(path, book) return false if !@package.force? && path.mtime < @original_mtime Mangos::BookUpdater.new(@package, book, path).update true end def delete(book) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mangos-0.3 | lib/mangos/processor.rb |
mangos-0.2 | lib/mangos/processor.rb |
mangos-0.1 | lib/mangos/processor.rb |