Sha256: 951fec2249da5c9b79fe86b73eb3856b023e84c5ccc79dd74b183d7662227fdc
Contents?: true
Size: 604 Bytes
Versions: 1
Compression:
Stored size: 604 Bytes
Contents
require 'tmpdir' require 'nokogiri' require 'docbook_xsl_wrapper/epub' require 'docbook_xsl_wrapper/options' require 'docbook_xsl_wrapper/validate' require "docbook_xsl_wrapper/version" module DocbookXslWrapper GEM_PATH = File.expand_path(File.join('..', '..'), __FILE__) def self.build_epub(options) tmp_dir = Dir.mktmpdir options.destination = tmp_dir begin puts "Rendering DocBook file #{options.docbook} to #{options.output}\n\n" if options.verbose epub = Epub.new(options) epub.create ensure FileUtils.remove_entry_secure tmp_dir end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
docbook_xsl_wrapper-0.5.2 | lib/docbook_xsl_wrapper.rb |