mirror of
https://github.com/jekyll/jekyll.git
synced 2026-04-06 03:01:43 -04:00
Debug writing files during the build process (#6696)
Merge pull request 6696
This commit is contained in:
@@ -227,6 +227,7 @@ module Jekyll
|
||||
def write(dest)
|
||||
path = destination(dest)
|
||||
FileUtils.mkdir_p(File.dirname(path))
|
||||
Jekyll.logger.debug "Writing:", path
|
||||
File.write(path, output, :mode => "wb")
|
||||
Jekyll::Hooks.trigger hook_owner, :post_write, self
|
||||
end
|
||||
|
||||
@@ -239,6 +239,7 @@ module Jekyll
|
||||
def write(dest)
|
||||
path = destination(dest)
|
||||
FileUtils.mkdir_p(File.dirname(path))
|
||||
Jekyll.logger.debug "Writing:", path
|
||||
File.write(path, output, :mode => "wb")
|
||||
|
||||
trigger_hooks(:post_write)
|
||||
|
||||
@@ -120,6 +120,7 @@ module Jekyll
|
||||
# Returns nothing.
|
||||
def write_metadata
|
||||
unless disabled?
|
||||
Jekyll.logger.debug "Writing Metadata:", ".jekyll-metadata"
|
||||
File.binwrite(metadata_file, Marshal.dump(metadata))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user