Rename Regenerator#write to Regenerator#write_metadata

This commit is contained in:
Alfred Xing
2015-01-19 16:24:18 -08:00
parent 29aabd84bd
commit 58e231ce40
3 changed files with 9 additions and 9 deletions

View File

@@ -103,7 +103,7 @@ module Jekyll
# Write the metadata to disk
#
# Returns nothing.
def write
def write_metadata
File.open(metadata_file, 'w') do |f|
f.write(metadata.to_yaml)
end

View File

@@ -325,7 +325,7 @@ module Jekyll
each_site_file { |item|
item.write(dest) if regenerator.regenerate?(item)
}
regenerator.write unless full_rebuild?
regenerator.write_metadata unless full_rebuild?
end
# Construct a Hash of Posts indexed by the specified Post attribute.