Sha256: b5bdd327d78829b76c69cf3797bbed2f8023712f8ef4ae1d4bfd9d4013346346
Contents?: true
Size: 545 Bytes
Versions: 2
Compression:
Stored size: 545 Bytes
Contents
require 'openscap' require 'openscap/ds/arf' module Proxy module OpenSCAP class ArfHtml def generate_html(file_in, file_out) ::OpenSCAP.oscap_init File.write file_out, get_arf_html(file_in) ::OpenSCAP.oscap_cleanup end def get_arf_html(file_in) arf_object = ::OpenSCAP::DS::Arf.new(file_in) # @TODO: Drop this when support for 1.8.7 ends return arf_object.html if RUBY_VERSION.start_with? '1.8' arf_object.html.force_encoding('UTF-8') end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
smart_proxy_openscap-0.6.7 | lib/smart_proxy_openscap/arf_html.rb |
smart_proxy_openscap-0.6.6 | lib/smart_proxy_openscap/arf_html.rb |