Class: Proxy::OpenSCAP::Storage
- Inherits:
-
Object
- Object
- Proxy::OpenSCAP::Storage
- 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.
5 6 7 8 9 10 11 12 13 |
# File 'lib/smart_proxy_openscap/storage.rb', line 5 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
35 36 37 |
# File 'lib/smart_proxy_openscap/storage.rb', line 35 def delete_arf_file raise NotImplementedError end |
#get_arf_html(full_path, digest) ⇒ Object
31 32 33 |
# File 'lib/smart_proxy_openscap/storage.rb', line 31 def get_arf_html(full_path, digest) raise NotImplementedError end |
#get_arf_xml(full_path, digest) ⇒ Object
27 28 29 |
# File 'lib/smart_proxy_openscap/storage.rb', line 27 def get_arf_xml(full_path, digest) raise NotImplementedError end |
#store_archive(full_path, data) ⇒ Object
15 16 17 |
# File 'lib/smart_proxy_openscap/storage.rb', line 15 def store_archive(full_path, data) raise NotImplementedError end |
#store_failed(full_path, data) ⇒ Object
23 24 25 |
# File 'lib/smart_proxy_openscap/storage.rb', line 23 def store_failed(full_path, data) raise NotImplementedError end |
#store_spool(full_path, data) ⇒ Object
19 20 21 |
# File 'lib/smart_proxy_openscap/storage.rb', line 19 def store_spool(full_path, data) raise NotImplementedError end |