Class: Nanoc::Core::CompilationPhases::Notify
- Includes:
- Nanoc::Core::ContractsSupport
- Defined in:
- lib/nanoc/core/compilation_phases/notify.rb
Overview
Provides functionality for notifying start and end of compilation.
Instance Method Summary collapse
-
#run(rep, is_outdated:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument.
Methods included from Nanoc::Core::ContractsSupport
enabled?, included, setup_once, warn_about_performance
Methods inherited from Abstract
#call, #initialize, #start, #stop
Constructor Details
This class inherits a constructor from Nanoc::Core::CompilationPhases::Abstract
Instance Method Details
#run(rep, is_outdated:) ⇒ Object
rubocop:disable Lint/UnusedMethodArgument
11 12 13 14 15 |
# 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 |