class ForemanScapClient::OvalClient

Private Instance Methods

ensure_scan_files() click to toggle source
# File lib/foreman_scap_client/oval_client.rb, line 11
def ensure_scan_files
  ensure_file :content_path, :download_path, "OVAL content"
end
policy_namespace() click to toggle source
# File lib/foreman_scap_client/oval_client.rb, line 7
def policy_namespace
  :oval
end
print_upload_result(parsed) click to toggle source
scan_command() click to toggle source
# File lib/foreman_scap_client/oval_client.rb, line 19
def scan_command
  "oscap oval eval --results #{results_path} #{policy_from_config[:content_path]}"
end
upload_uri() click to toggle source
# File lib/foreman_scap_client/oval_client.rb, line 15
def upload_uri
  foreman_proxy_uri + "/compliance/oval_reports/#{@policy_id}"
end