# File lib/smart_proxy_openscap/openscap_html_generator.rb, line 7 def initialize(cname, id, date, digest) @cname = cname @id = id @date = date @digest = digest @script_name = 'smart-proxy-arf-html' end
# File lib/smart_proxy_openscap/openscap_html_generator.rb, line 23 def command(in_file, out_file) "#{script_location} #{file_path_in_storage} #{out_file.path}" end
# File lib/smart_proxy_openscap/openscap_html_generator.rb, line 27 def failure_message "Failure when running script which generates html reports" end
# File lib/smart_proxy_openscap/openscap_html_generator.rb, line 31 def file_path_in_storage path_to_dir = Proxy::OpenSCAP::Plugin.settings.reportsdir storage = Proxy::OpenSCAP::StorageFS.new(path_to_dir, @cname, @id, @date) storage.get_path(@digest) end
# File lib/smart_proxy_openscap/openscap_html_generator.rb, line 15 def get_html execute_shell_command end
# File lib/smart_proxy_openscap/openscap_html_generator.rb, line 19 def out_filename "#{super}-#{@cname}-#{@id}-#{@date}-#{@digest}-" end