class Nanoc::Core::CompilationPhases::Notify

Provides functionality for notifying start and end of compilation.

Public Instance Methods

run(rep, is_outdated:) { || ... } click to toggle source
# File lib/nanoc/core/compilation_phases/notify.rb, line 11
def run(rep, is_outdated:) # rubocop:disable Lint/UnusedMethodArgument
  Nanoc::Core::NotificationCenter.post(:compilation_started, rep)
  yield
  Nanoc::Core::NotificationCenter.post(:compilation_ended, rep)
end