Sha256: 665bb491b5fb7f015af6ad6b443ac285a49fef7412e31fdeb7a8454f68ec0cc6
Contents?: true
Size: 788 Bytes
Versions: 9
Compression:
Stored size: 788 Bytes
Contents
module Actions module Katello module System 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(system, errata_uuids) applicable_errata = system.applicable_errata.where(:uuid => errata_uuids) plan_action(Actions::Katello::System::Erratum::Install, system, applicable_errata.pluck(:errata_id)) end def humanized_name _("Install Applicable Errata") end def presenter Helpers::Presenter::Delegated.new(self, planned_actions(Katello::System::Erratum::Install)) end end end end end end
Version data entries
9 entries across 9 versions & 1 rubygems