lib/awestruct/extensions/data_dir.rb in awestruct-0.2.3 vs lib/awestruct/extensions/data_dir.rb in awestruct-0.2.4

- old
+ new

@@ -6,9 +6,12 @@ def initialize(data_dir="_data") @data_dir = data_dir end + def watch(watched_dirs) + watched_dirs << @data_dir + end def execute(site) Dir[ "#{site.dir}/#{@data_dir}/*" ].each do |entry| if ( File.directory?( entry ) )