Sha256: 7e68773d0832c23c212263a112fe025aa908ba9a03288e73ad5d6ba65205734a
Contents?: true
Size: 912 Bytes
Versions: 7
Compression:
Stored size: 912 Bytes
Contents
require 'smart_proxy_openscap/shell_wrapper' module Proxy module OpenSCAP class ArfParser < ShellWrapper def initialize(cname, policy_id, date) @cname = cname @policy_id = policy_id @date = date @script_name = 'smart-proxy-arf-json' end def as_json(arf_data) execute_shell_command arf_data end def in_filename "#{super}-#{@cname}-#{@policy_id}-#{@date}-" end def out_filename "#{in_filename}json-" end def failure_message "Failure when running script which parses reports" end def command(in_file, out_file) "#{script_location} " << "#{in_file.path} " << "#{out_file.path} " << "#{Proxy::OpenSCAP::Plugin.settings.registered_proxy_name} " << "#{Proxy::OpenSCAP::Plugin.settings.registered_proxy_url}" end end end end
Version data entries
7 entries across 7 versions & 1 rubygems