Permalink
Browse files

adding conditions to the rest of the things that generate output file…

…s so no files are generated when using --dry-run
  • Loading branch information...
1 parent ba3b11d commit e7114a7385dd760f9527bb92e655aebc19a99d5d @benfyvie committed Dec 17, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/sdoc/generator.rb
@@ -306,7 +306,7 @@ def generate_class_files
rel_prefix = @outputdir.relative_path_from( outfile.dirname )
debug_msg " rendering #{outfile}"
- self.render_template( templatefile, binding(), outfile )
+ self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
end
end
@@ -321,7 +321,7 @@ def generate_file_files
rel_prefix = @outputdir.relative_path_from( outfile.dirname )
debug_msg " rendering #{outfile}"
- self.render_template( templatefile, binding(), outfile )
+ self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
end
end
@@ -348,7 +348,7 @@ def generate_index_file
templatefile = @template_dir + 'index.rhtml'
outfile = @outputdir + 'index.html'
- self.render_template( templatefile, binding(), outfile )
+ self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
end
### Generate file with links for the search engine
@@ -357,7 +357,7 @@ def generate_se_index
templatefile = @template_dir + 'se_index.rhtml'
outfile = @outputdir + 'panel/links.html'
- self.render_template( templatefile, binding(), outfile )
+ self.render_template( templatefile, binding(), outfile ) unless @options.dry_run
end
### Copy all the resource files to output dir

0 comments on commit e7114a7

Please sign in to comment.