Class: Actions::Katello::Applicability::Host::Generate

Inherits:
EntryAction
  • Object
show all
Defined in:
app/lib/actions/katello/applicability/host/generate.rb

Instance Method Summary collapse

Instance Method Details

#humanized_nameObject



21
22
23
# File 'app/lib/actions/katello/applicability/host/generate.rb', line 21

def humanized_name
  _("Generate host applicability")
end

#resource_locksObject



17
18
19
# File 'app/lib/actions/katello/applicability/host/generate.rb', line 17

def resource_locks
  :link
end

#runObject



12
13
14
15
# File 'app/lib/actions/katello/applicability/host/generate.rb', line 12

def run
  content_facet = ::Host.find(input[:host_id]).content_facet
  content_facet.calculate_and_import_applicability
end