Sha256: 929c524fd0799d18734a7b9306a2d8f07cec78d36c02105dd16872729eaf6eb6
Contents?: true
Size: 680 Bytes
Versions: 30
Compression:
Stored size: 680 Bytes
Contents
module Alula class DummyProcessor < Processor def process super asset_name = self.attachments.asset_name(item.name) output = File.join(self.site.storage.path(:cache, "attachments"), asset_name) # Make sure our directory exists output_dir = self.site.storage.path(:cache, "attachments", File.dirname(asset_name)) # Skip processing if output already exists... unless File.exists?(output) # Just simply copy attachement FileUtils.cp(item.filepath, output) end # Cleanup ourself cleanup end end end Alula::AttachmentProcessor.register('dummy', Alula::DummyProcessor)
Version data entries
30 entries across 30 versions & 1 rubygems