Class: AlImgTools::PluginStaticFile
- Inherits:
-
Jekyll::StaticFile
- Object
- Jekyll::StaticFile
- AlImgTools::PluginStaticFile
- Defined in:
- lib/al_img_tools.rb
Overview
Custom StaticFile class to track when files are written
Instance Method Summary collapse
Instance Method Details
#write(dest) ⇒ Object
12 13 14 15 16 17 18 19 20 21 |
# File 'lib/al_img_tools.rb', line 12 def write(dest) Jekyll.logger.debug("AlImgTools:", "Attempting to copy from #{path} to #{destination(dest)}") super(dest).tap do |result| if result Jekyll.logger.info("AlImgTools:", "Successfully copied #{name} from #{path} to #{destination(dest)}") else Jekyll.logger.debug("AlImgTools:", "Skipped unchanged asset #{name} from #{path}") end end end |