class SiSU_Create_File::CreateFile
Public Class Methods
new(fns)
click to toggle source
todo unify with FileOp
Calls superclass method
SiSU_Info_Env::InfoEnv::new
# File lib/sisu/se_file_op.rb, line 2672 def initialize(fns) begin super(fns) @env=SiSU_Env::InfoEnv.new(fns) rescue SiSU_Screen::Ansi.new('',$!,$@).rescue do __LINE__.to_s + ':' + __FILE__ end ensure end end
Public Instance Methods
epub()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2740 def epub @pth=@env.processing_path.epub def xhtml_index fn=@pth + '/' \ + Ep[:d_oebps] + '/index.xhtml' File.new(fn,'w+') end def xhtml_cover_image fn=@pth + '/' \ + Ep[:d_oebps] + '/cover_image.xhtml' File.new(fn,'w+') end def xhtml_segtoc fn=@pth + '/' \ + Ep[:d_oebps] + '/toc.xhtml' File.new(fn,'w+') end def mimetype #fixed application/epub+zip ~/grotto/theatre/dbld/builds/epub_sample/mimetype File.new("#{@pth}/mimetype",'w') end def metadata #variable matadata ~/grotto/theatre/dbld/builds/epub_sample/metadata.opf fn=@pth + '/' \ + Ep[:d_oebps] + '/' \ + Ep[:f_opf] File.new(fn,'w') end def toc_ncx #variable toc ~/grotto/theatre/dbld/builds/epub_sample/toc.ncx fn=@pth + '/' \ + Ep[:d_oebps] + '/' \ + Ep[:f_ncx] File.new(fn,'w') end def metainf_cont #variable content ~/grotto/theatre/dbld/builds/epub_sample/META-INF/container.xml fn=@pth + '/META-INF/container.xml' File.new(fn,'w') end def xhtml_css #fixed epub xhtml css fn=@pth + '/' \ + Ep[:d_oebps] + '/css/xhtml.css' File.new(fn,'w') end self end
file_debug()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2705 def file_debug fn=@env.processing_path.ao + '/' \ + @fns + '.debug.txt' File.new(fn,'w+') end
file_error()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2696 def file_error fn='/tmp/errorlog.sisu' File.new(fn,'w+') end
file_generic(output_file='')
click to toggle source
# File lib/sisu/se_file_op.rb, line 2690 def file_generic(output_file='') fn=@env.path.output + '/' \ + @fnb + '/' \ + output_file File.new(fn,'w+') end
file_meta()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2711 def file_meta fn=@env.processing_path.ao + '/' \ + @fns + '.meta' File.new(fn,'w+') end
file_meta_idx_html()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2716 def file_meta_idx_html fn=@env.processing_path.ao + '/' \ + @fns + '.idx.html' File.new(fn,'w+') end
file_note()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2723 def file_note fn=Dir.pwd + '/' \ + @fns + '.fn' File.new(fn,'w+') end
file_rss()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2736 def file_rss fn='./semantic.xml' File.new(fn,'w+') end
file_semantic()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2732 def file_semantic fn='./semantic.yaml' File.new(fn,'w+') end
file_texinfo()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2783 def file_texinfo fn=@env.processing_path.texinfo + '/' \ + @fnb + '.texinfo' File.new(fn,'w+') end
file_txt()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2700 def file_txt fn=@env.processing_path.ao + '/' \ + @fns + '.txt' File.new(fn,'w+') end
html_root()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2683 def html_root #@env.path.output end
meta()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2728 def meta @env.processing_path.ao + '/' \ + @fns + '.meta' end
metadata()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2760 def metadata #variable matadata ~/grotto/theatre/dbld/builds/epub_sample/metadata.opf fn=@pth + '/' \ + Ep[:d_oebps] + '/' \ + Ep[:f_opf] File.new(fn,'w') end
metainf_cont()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2772 def metainf_cont #variable content ~/grotto/theatre/dbld/builds/epub_sample/META-INF/container.xml fn=@pth + '/META-INF/container.xml' File.new(fn,'w') end
metaverse()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2710 def metaverse def file_meta fn=@env.processing_path.ao + '/' \ + @fns + '.meta' File.new(fn,'w+') end def file_meta_idx_html fn=@env.processing_path.ao + '/' \ + @fns + '.idx.html' File.new(fn,'w+') end self end
mimetype()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2757 def mimetype #fixed application/epub+zip ~/grotto/theatre/dbld/builds/epub_sample/mimetype File.new("#{@pth}/mimetype",'w') end
mkdir_pdf()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2686 def mkdir_pdf Dir.mkdir(@env.processing_path.tex) \ unless FileTest.directory?(@env.processing_path.tex) end
toc_ncx()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2766 def toc_ncx #variable toc ~/grotto/theatre/dbld/builds/epub_sample/toc.ncx fn=@pth + '/' \ + Ep[:d_oebps] + '/' \ + Ep[:f_ncx] File.new(fn,'w') end
xhtml_cover_image()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2747 def xhtml_cover_image fn=@pth + '/' \ + Ep[:d_oebps] + '/cover_image.xhtml' File.new(fn,'w+') end
xhtml_css()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2776 def xhtml_css #fixed epub xhtml css fn=@pth + '/' \ + Ep[:d_oebps] + '/css/xhtml.css' File.new(fn,'w') end
xhtml_index()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2742 def xhtml_index fn=@pth + '/' \ + Ep[:d_oebps] + '/index.xhtml' File.new(fn,'w+') end
xhtml_segtoc()
click to toggle source
# File lib/sisu/se_file_op.rb, line 2752 def xhtml_segtoc fn=@pth + '/' \ + Ep[:d_oebps] + '/toc.xhtml' File.new(fn,'w+') end