lib/nanoc3/cli/commands/watch.rb in nanoc3-3.2.0a3 vs lib/nanoc3/cli/commands/watch.rb in nanoc3-3.2.0a4
- old
+ new
@@ -1,9 +1,10 @@
# encoding: utf-8
module Nanoc3::CLI::Commands
+ # @since 3.2.0
class Watch < Cri::Command
def name
'watch'
end
@@ -90,10 +91,10 @@
dirs_to_watch = watcher_config[:dirs_to_watch] || %w( content layouts lib )
files_to_watch = watcher_config[:files_to_watch] || %w( config.yaml Rules )
# Watch
puts "Watching for changes…".make_compatible_with_env
- watcher = lambda do
+ watcher = lambda do |*args|
update(&rebuilder)
delete(&rebuilder)
create(&rebuilder)
end
monitor = FSSM::Monitor.new