From 90fa3f29213b2eea3f7a94734a6cbd71027ac904 Mon Sep 17 00:00:00 2001 From: Parker Moore Date: Sun, 3 Feb 2013 20:36:34 +0100 Subject: [PATCH] Improved output for auto-regeneration. --- lib/jekyll/commands/build.rb | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/lib/jekyll/commands/build.rb b/lib/jekyll/commands/build.rb index 04942b77..f85b65e7 100644 --- a/lib/jekyll/commands/build.rb +++ b/lib/jekyll/commands/build.rb @@ -50,7 +50,9 @@ module Jekyll source = options['source'] destination = options['destination'] - puts "Auto-Regenerating enabled: #{source} -> #{destination}" + puts " Source: #{source}" + puts " Destination: #{destination}" + puts " Auto-regeneration: enabled" dw = DirectoryWatcher.new(source) dw.interval = 1 @@ -58,15 +60,16 @@ module Jekyll dw.add_observer do |*args| t = Time.now.strftime("%Y-%m-%d %H:%M:%S") - puts "[#{t}] regeneration: #{args.size} files changed" + print " Regenerating: #{args.size} files at #{t} " site.process + puts "...done." end dw.start unless options['serving'] trap("INT") do - puts "Stopping auto-regeneration..." + puts " Halting auto-regeneration." exit 0 end