lib/nanoc/base/services/executor.rb in nanoc-4.0.2 vs lib/nanoc/base/services/executor.rb in nanoc-4.1.0a1
- old
+ new
@@ -96,21 +96,21 @@
Nanoc::Int::NotificationCenter.post(:filtering_ended, rep, filter_name)
Nanoc::Int::NotificationCenter.post(:processing_ended, layout)
end
end
- def snapshot(rep, snapshot_name, params = {})
- is_final = params.fetch(:final, true)
+ def snapshot(rep, snapshot_name, final: true, path: nil) # rubocop:disable Lint/UnusedMethodArgument
+ # NOTE: :path is irrelevant
unless rep.binary?
rep.snapshot_contents[snapshot_name] = rep.snapshot_contents[:last]
end
- if snapshot_name == :pre && is_final
+ if snapshot_name == :pre && final
rep.snapshot_defs << Nanoc::Int::SnapshotDef.new(:pre, true)
end
- if is_final
+ if final
raw_path = rep.raw_path(snapshot: snapshot_name)
if raw_path
ItemRepWriter.new.write(rep, raw_path)
end
end