Class: HammerCLIForemanOpenscap::Searchables

Inherits:
HammerCLIForeman::Searchables
  • Object
show all
Defined in:
lib/hammer_cli_foreman_openscap/id_resolver.rb

Constant Summary collapse

SEARCHABLES =
{
  :scap_content => [s("title", _("SCAP content title"))],
  :arf_report => [],
  :policy => [s_name(_("Policy name"))],
  :tailoring_file => [s_name('Tailoring file name')]
}
DEFAULT_SEARCHABLES =
[s_name(_("Name to search by"))]

Instance Method Summary collapse

Instance Method Details

#for(resource) ⇒ Object



12
13
14
# File 'lib/hammer_cli_foreman_openscap/id_resolver.rb', line 12

def for(resource)
  SEARCHABLES[resource.singular_name.to_sym] || DEFAULT_SEARCHABLES
end