Class: Proxy::OpenSCAP::Storage
- Inherits:
-
Object
- Object
- Proxy::OpenSCAP::Storage
- Includes:
- Log
- Defined in:
- lib/smart_proxy_openscap/storage.rb
Direct Known Subclasses
Instance Method Summary collapse
- #delete_arf_file ⇒ Object
- #get_arf_html(full_path, digest) ⇒ Object
- #get_arf_xml(full_path, digest) ⇒ Object
-
#initialize(path_to_dir, cname, id, date) ⇒ Storage
constructor
A new instance of Storage.
- #store_archive(full_path, data) ⇒ Object
- #store_failed(full_path, data) ⇒ Object
- #store_spool(full_path, data) ⇒ Object
Constructor Details
#initialize(path_to_dir, cname, id, date) ⇒ Storage
Returns a new instance of Storage.
7 8 9 10 11 12 13 14 15 |
# File 'lib/smart_proxy_openscap/storage.rb', line 7 def initialize(path_to_dir, cname, id, date) @namespace = 'arf' @cname = cname @id = id @date = date validate_id(@id) @path_to_dir = path_to_dir @path = "#{@path_to_dir}/#{@namespace}/#{@cname}/#{@id}/#{@date}/" end |
Instance Method Details
#delete_arf_file ⇒ Object
37 38 39 |
# File 'lib/smart_proxy_openscap/storage.rb', line 37 def delete_arf_file raise NotImplementedError end |
#get_arf_html(full_path, digest) ⇒ Object
33 34 35 |
# File 'lib/smart_proxy_openscap/storage.rb', line 33 def get_arf_html(full_path, digest) raise NotImplementedError end |
#get_arf_xml(full_path, digest) ⇒ Object
29 30 31 |
# File 'lib/smart_proxy_openscap/storage.rb', line 29 def get_arf_xml(full_path, digest) raise NotImplementedError end |
#store_archive(full_path, data) ⇒ Object
17 18 19 |
# File 'lib/smart_proxy_openscap/storage.rb', line 17 def store_archive(full_path, data) raise NotImplementedError end |
#store_failed(full_path, data) ⇒ Object
25 26 27 |
# File 'lib/smart_proxy_openscap/storage.rb', line 25 def store_failed(full_path, data) raise NotImplementedError end |
#store_spool(full_path, data) ⇒ Object
21 22 23 |
# File 'lib/smart_proxy_openscap/storage.rb', line 21 def store_spool(full_path, data) raise NotImplementedError end |