Sha256: 8f27974cc7094ffedfd1b9f5a5c233cc6e274e2a09c2e557336ee8f9f57b096f
Contents?: true
Size: 741 Bytes
Versions: 5
Compression:
Stored size: 741 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}" end end end end
Version data entries
5 entries across 5 versions & 1 rubygems