Changeset 294
- Timestamp:
- 04/29/08 03:48:06 (7 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/log_indexing_time_with_ferret/lib/picolena/picolena_generator.rb
r293 r294 17 17 @destination_root = options[:destination] 18 18 19 @directories_to_index=ARGV.collect{|relative_path| 20 abs_dir=Pathname.new(relative_path).realpath.to_s 21 "\"#{abs_dir}\" : \"#{abs_dir}\"" 22 }.join("\n ") 19 @directories_to_index=if options[:spec_only] then 20 "/whatever : /whatever" 21 else 22 ARGV.collect{|relative_path| 23 abs_dir=Pathname.new(relative_path).realpath.to_s 24 "\"#{abs_dir}\" : \"#{abs_dir}\"" 25 }.join("\n ") 26 end 23 27 24 28 extract_options
