lib/webgen/sourcehandler.rb in gettalong-webgen-0.5.6.20081020 vs lib/webgen/sourcehandler.rb in gettalong-webgen-0.5.7.20090227

- old
+ new

@@ -1,5 +1,7 @@ +# -*- encoding: utf-8 -*- + require 'webgen/loggable' require 'benchmark' module Webgen @@ -48,15 +50,21 @@ website.cache.reset_volatile_cache update_tree(tree) end puts "...done in " + ('%2.4f' % time.real) + ' seconds' + if !tree.root + puts 'No source files found - maybe not a webgen website?' + return nil + end + puts "Writing changed nodes..." time = Benchmark.measure do write_tree(tree) end puts "...done in " + ('%2.4f' % time.real) + ' seconds' end while tree.node_access[:alcn].any? {|name,node| node.flagged(:created) || node.flagged(:reinit)} + :success end ####### private #######