Class: Nanoc::Live::LiveRecompiler

Inherits:
Object
  • Object
show all
Defined in:
lib/nanoc/live/live_recompiler.rb

Instance Method Summary collapse

Constructor Details

#initialize(command_runner:, focus:) ⇒ LiveRecompiler

Returns a new instance of LiveRecompiler.



6
7
8
9
# File 'lib/nanoc/live/live_recompiler.rb', line 6

def initialize(command_runner:, focus:)
  @command_runner = command_runner
  @focus = focus
end

Instance Method Details

#runObject



11
12
13
14
15
# File 'lib/nanoc/live/live_recompiler.rb', line 11

def run
  run_parent do |site|
    handle_changes(site, @command_runner, focus: @focus)
  end
end