Class: Proxy::OpenSCAP::Storage

Inherits:
Object
  • Object
show all
Includes:
Log
Defined in:
lib/smart_proxy_openscap/storage.rb

Direct Known Subclasses

StorageFS

Instance Method Summary collapse

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_fileObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


21
22
23
# File 'lib/smart_proxy_openscap/storage.rb', line 21

def store_spool(full_path, data)
  raise NotImplementedError
end