lib/nanoc/rule_dsl/rule_context.rb in nanoc-4.6.1 vs lib/nanoc/rule_dsl/rule_context.rb in nanoc-4.6.2
- old
+ new
@@ -72,9 +72,12 @@
#
# @param [String] path
#
# @return [void]
def write(path)
- snapshot(:last, path: path)
+ @_write_snapshot_counter ||= 0
+ snapshot_name = "_#{@_write_snapshot_counter}".to_sym
+ @_write_snapshot_counter += 1
+ snapshot(snapshot_name, path: path)
end
end
end