Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
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...
commit e7114a7385dd760f9527bb92e655aebc19a99d5d 1 parent ba3b11d
@benfyvie authored
Showing with 4 additions and 4 deletions.
  1. +4 −4 lib/sdoc/generator.rb
View
8 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
Please sign in to comment.
Something went wrong with that request. Please try again.