Method: Condom::Classic#create
- Defined in:
- lib/condom/classic.rb
#create ⇒ Object
This method will write in the output directory all needed files.
37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 |
# File 'lib/condom/classic.rb', line 37 def create in_directory do # Create files build "classic.tex" File.rename("classic.tex", "main.tex") build "Makefile" if @graphics build "fig.tex" Dir.mkdir "fig" end Dir.mkdir "src" if @listings Dir.mkdir "inc" Dir.chdir "inc" do build "packages.tex" build "commands.tex" build "colors.tex" build "listings.tex" if @listings build "first-page.tex" if @document_class == "report" end end end |