Sha256: a8ab3afc6ff69dba0971edbf60253ea49175890ef2ca1ee765e9ff11fed3f06e

Contents?: true

Size: 626 Bytes

Versions: 12

Compression:

Stored size: 626 Bytes

Contents

require 'smart_proxy_openscap/shell_wrapper'

module Proxy::OpenSCAP
  class ContentParser < ShellWrapper
    def initialize(type)
      @type = type
      @script_name = 'smart-proxy-scap-validation'
    end

    def validate(scap_file)
      execute_shell_command scap_file
    end

    def out_filename
      "#{in_filename}json-"
    end

    def in_filename
      "#{super}-#{@type}-validate-"
    end

    def failure_message
      "Failure when running script which validates scap files"
    end

    def command(in_file, out_file)
      "#{script_location} #{in_file.path} #{out_file.path} #{@type}"
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
smart_proxy_openscap-0.7.5 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.7.4 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.7.3 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.7.2 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.7.1 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.7.0 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.6.11 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.6.10 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.6.9 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.6.8 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.6.7 lib/smart_proxy_openscap/content_parser.rb
smart_proxy_openscap-0.6.6 lib/smart_proxy_openscap/content_parser.rb