Class: Proxy::OpenSCAP::OvalReportStorageFs
- Inherits:
-
Object
- Object
- Proxy::OpenSCAP::OvalReportStorageFs
- Includes:
- StorageFsCommon
- Defined in:
- lib/smart_proxy_openscap/oval_report_storage_fs.rb
Instance Method Summary collapse
-
#initialize(path_to_dir, oval_policy_id, cname, reported_at) ⇒ OvalReportStorageFs
constructor
A new instance of OvalReportStorageFs.
- #store_report(report_data) ⇒ Object
Constructor Details
#initialize(path_to_dir, oval_policy_id, cname, reported_at) ⇒ OvalReportStorageFs
Returns a new instance of OvalReportStorageFs.
8 9 10 11 12 |
# File 'lib/smart_proxy_openscap/oval_report_storage_fs.rb', line 8 def initialize(path_to_dir, oval_policy_id, cname, reported_at) @namespace = 'oval' @reported_at = reported_at @path = "#{path_to_dir}/#{@namespace}/#{oval_policy_id}/#{cname}/" end |
Instance Method Details
#store_report(report_data) ⇒ Object
14 15 16 |
# File 'lib/smart_proxy_openscap/oval_report_storage_fs.rb', line 14 def store_report(report_data) store(report_data, StoreReportError) end |