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

Version Path
katello-2.4.5 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.4 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.3 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.2 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.1 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.0 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.0.rc3 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.0.rc2 app/lib/actions/katello/system/erratum/applicable_errata_install.rb
katello-2.4.0.rc1 app/lib/actions/katello/system/erratum/applicable_errata_install.rb