lib/picolena/picolena_generator.rb in picolena-0.1.6 vs lib/picolena/picolena_generator.rb in picolena-0.1.7
- old
+ new
@@ -14,14 +14,18 @@
def initialize(runtime_args, runtime_options = {})
super
usage if args.empty? and !options[:spec_only]
@destination_root = options[:destination]
- @directories_to_index=ARGV.collect{|relative_path|
- abs_dir=Pathname.new(relative_path).realpath.to_s
- "\"#{abs_dir}\" : \"#{abs_dir}\""
- }.join("\n ")
+ @directories_to_index=if options[:spec_only] then
+ "/whatever : /whatever"
+ else
+ ARGV.collect{|relative_path|
+ abs_dir=Pathname.new(relative_path).realpath.to_s
+ "\"#{abs_dir}\" : \"#{abs_dir}\""
+ }.join("\n ")
+ end
extract_options
end
def manifest
@@ -61,9 +65,10 @@
m.file '../config/white_list_ip.yml', 'config/custom/white_list_ip.yml'
m.file '../config/basic.rb', 'config/custom/picolena.rb'
m.template '../config/indexed_directories.yml', 'config/custom/indexed_directories.yml', :assigns => {:directories_to_index => @directories_to_index}
m.template '../config/title_and_names_and_links.yml', 'config/custom/title_and_names_and_links.yml', :assigns => {:version => Picolena::VERSION::STRING}
m.file '../config/icons_and_filetypes.yml', 'config/custom/icons_and_filetypes.yml'
+ m.file '../config/indexing_performance.yml', 'config/custom/indexing_performance.yml'
# README, License & Rakefile
m.file 'MIT-LICENSE', 'LICENSE'
m.file '../../../README.txt', 'README'
m.file '../../../README.txt', 'doc/README_FOR_APP'