Class: Nanoc::CLI::CompileListeners::Aggregate Private
- Defined in:
- lib/nanoc/cli/compile_listeners/aggregate.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Class Method Summary collapse
Instance Method Summary collapse
-
#initialize(command_runner:, site:, compiler:) ⇒ Aggregate
constructor
private
A new instance of Aggregate.
- #start ⇒ Object private
- #stop ⇒ Object private
Methods inherited from Abstract
enable_for?, #on, #run_while, #start_safely, #stop_safely, #wrapped_start, #wrapped_stop
Constructor Details
#initialize(command_runner:, site:, compiler:) ⇒ Aggregate
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of Aggregate.
5 6 7 8 9 10 11 |
# File 'lib/nanoc/cli/compile_listeners/aggregate.rb', line 5 def initialize(command_runner:, site:, compiler:) @site = site @compiler = compiler @command_runner = command_runner @listener_classes = self.class.default_listener_classes end |
Class Method Details
.default_listener_classes ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
21 22 23 24 25 26 27 28 |
# File 'lib/nanoc/cli/compile_listeners/aggregate.rb', line 21 def self.default_listener_classes [ Nanoc::CLI::CompileListeners::DiffGenerator, Nanoc::CLI::CompileListeners::DebugPrinter, Nanoc::CLI::CompileListeners::TimingRecorder, Nanoc::CLI::CompileListeners::FileActionPrinter, ] end |
Instance Method Details
#start ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
13 14 15 |
# File 'lib/nanoc/cli/compile_listeners/aggregate.rb', line 13 def start setup_listeners end |
#stop ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
17 18 19 |
# File 'lib/nanoc/cli/compile_listeners/aggregate.rb', line 17 def stop teardown_listeners end |