lib/awestruct/cli/auto.rb in awestruct-0.4.2.x8 vs lib/awestruct/cli/auto.rb in awestruct-0.4.2.x9
- old
+ new
@@ -14,16 +14,11 @@
listener = Listen.to( @config.dir, :relative_paths=>true )
listener.ignore( %r(\.awestruct) )
listener.ignore( %r(^#{File.basename( @config.tmp_dir )}) )
listener.ignore( %r(^#{File.basename( @config.output_dir )}) )
listener.change do |modified, added, removed|
- puts "modified #{modified.inspect}"
- puts "added #{added.inspect}"
- puts "removed #{removed.inspect}"
modified.each do |path|
engine = ::Awestruct::Engine.instance
- puts "path -> #{path}"
- puts "bn -> #{File.basename( engine.config.output_dir )}"
unless ( path =~ %r(#{File.basename( engine.config.output_dir) }) || path =~ /.awestruct/ )
engine.generate_page_by_output_path( path )
end
end
end