Module: ForemanOpenscapHelper

Defined in:
app/helpers/foreman_openscap_helper.rb

Instance Method Summary collapse

Instance Method Details

#scap_doc_button(section) ⇒ Object



4
5
6
# File 'app/helpers/foreman_openscap_helper.rb', line 4

def scap_doc_button(section)
  documentation_button(section, root_url: scap_doc_url)
end

#scap_doc_url(section = '') ⇒ Object



8
9
10
11
12
# File 'app/helpers/foreman_openscap_helper.rb', line 8

def scap_doc_url(section = '')
  return scap_root_url if section.empty?

  documentation_url(section, root_url: scap_root_url)
end