Sha256: 8ae9c36fe3ab1aaf229b37c79b899f7ac7777b717353dd273881c72f5b6ee58e
Contents?: true
Size: 971 Bytes
Versions: 8
Compression:
Stored size: 971 Bytes
Contents
module Actions module Katello module Host module Erratum class ApplicableErrataInstall < Actions::EntryAction include Helpers::Presenter #takes a list of errata and schedules the installation of those that are applicable def plan(host, errata_ids) applicable_errata = host.content_facet.applicable_errata.with_identifiers(errata_ids) plan_action(Actions::Katello::Host::Erratum::Install, host, applicable_errata.pluck(:errata_id)) plan_self(:hostname => host.name) end def humanized_name if input[:hostname] _("Install Applicable Errata") else _("Install Applicable Errata on %s") % input[:hostname] end end def presenter Helpers::Presenter::Delegated.new(self, planned_actions(Katello::Host::Erratum::Install)) end end end end end end
Version data entries
8 entries across 8 versions & 1 rubygems