Sha256: 8cf9ec1c3ef1067b651d4a9f8ec20e439b7b8cab207dce18ba3cfd9a1fe143ee
Contents?: true
Size: 414 Bytes
Versions: 3
Compression:
Stored size: 414 Bytes
Contents
module HammerCLIForemanOpenscap class Searchables < HammerCLIForeman::Searchables SEARCHABLES = { :scap_content => [s("title", _("Scap content title"))], :arf_report => [], :policy => [s_name(_("Policy name"))] } DEFAULT_SEARCHABLES = [s_name(_("Name to search by"))] def for(resource) SEARCHABLES[resource.singular_name.to_sym] || DEFAULT_SEARCHABLES end end end
Version data entries
3 entries across 3 versions & 1 rubygems