class Zenweb::Page::Binary
A file representing a binary. This file is not rendered in any way, and doesnβt have the usual dependencies because its content would not be modified to changes in config or the like.
Public Instance Methods
Source
# File lib/zenweb/page.rb, line 509 def date = File.stat(path).mtime def generate warn "Linking #{url_path}" verbose = Rake.application.options.trace ln path, url_path, verbose: verbose touch url_path, mtime: date, verbose: verbose end def wire file self.path directory url_dir file url_path => url_dir file url_path => path do self.generate end task :site => url_path end end
Source
# File lib/zenweb/page.rb, line 511 def generate warn "Linking #{url_path}" verbose = Rake.application.options.trace ln path, url_path, verbose: verbose touch url_path, mtime: date, verbose: verbose end
Source
# File lib/zenweb/page.rb, line 518 def wire file self.path directory url_dir file url_path => url_dir file url_path => path do self.generate end task :site => url_path end