lib/stack/watcher.rb in stack-0.0.6 vs lib/stack/watcher.rb in stack-0.0.7
- old
+ new
@@ -26,14 +26,16 @@
self.directory_watcher = DirectoryWatcher.new(self.source)
self.directory_watcher.interval = 1
self.directory_watcher.glob = dirs
self.directory_watcher.add_observer do |*args|
+ time = Time.now.strftime("%Y-%m-%d %H:%M:%S")
+ puts "[#{time}] #{args.size} files changed."
self.generator.process!
self.generator.transform!
time = Time.now.strftime("%Y-%m-%d %H:%M:%S")
- puts "[#{time}] #{args.size} files changed and processed."
+ puts "[#{time}] #{args.size} files processed."
end
self.directory_watcher.start
if self.keep_alive
\ No newline at end of file