Class: Nanoc::Core::CompilationStage
- Inherits:
-
Object
- Object
- Nanoc::Core::CompilationStage
show all
- Defined in:
- lib/nanoc/core/compilation_stage.rb
Direct Known Subclasses
Nanoc::Core::CompilationStages::BuildReps, Nanoc::Core::CompilationStages::CalculateChecksums, Nanoc::Core::CompilationStages::Cleanup, Nanoc::Core::CompilationStages::CompileReps, Nanoc::Core::CompilationStages::DetermineOutdatedness, Nanoc::Core::CompilationStages::ForgetOutdatedDependencies, Nanoc::Core::CompilationStages::LoadStores, Nanoc::Core::CompilationStages::Postprocess, Nanoc::Core::CompilationStages::Preprocess, Nanoc::Core::CompilationStages::Prune, Nanoc::Core::CompilationStages::StorePostCompilationState, Nanoc::Core::CompilationStages::StorePreCompilationState
Instance Method Summary
collapse
Instance Method Details
#call(*args) ⇒ Object
6
7
8
9
10
11
12
13
14
15
16
|
# File 'lib/nanoc/core/compilation_stage.rb', line 6
def call(*args)
notify(:stage_started)
res = Nanoc::Core::Instrumentor.call(:stage_ran, self.class) do
run(*args)
end
notify(:stage_ended)
res
rescue
notify(:stage_aborted)
raise
end
|
#run ⇒ Object
18
19
20
|
# File 'lib/nanoc/core/compilation_stage.rb', line 18
def run(*)
raise NotImplementedError
end
|