Class: Proxy::OpenSCAP::Storage

Inherits:
Object
  • Object
show all
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.



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_fileObject

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


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

Raises:

  • (NotImplementedError)


19
20
21
# File 'lib/smart_proxy_openscap/storage.rb', line 19

def store_spool(full_path, data)
  raise NotImplementedError
end