Sha256: 2070cc1789aa799134885fe773bfc15506948beaaab1756d9456fa18b69ec011

Contents?: true

Size: 931 Bytes

Versions: 9

Compression:

Stored size: 931 Bytes

Contents

module Actions
  module Katello
    module System
      module Erratum
        class Install < Actions::EntryAction
          include Helpers::Presenter

          def plan(system, errata_ids)
            Type! system, ::Katello::System

            action_subject(system, :errata => errata_ids)
            plan_action(Pulp::Consumer::ContentInstall,
                        consumer_uuid: system.uuid,
                        type:          'erratum',
                        args:          errata_ids)
          end

          def humanized_name
            _("Install erratum")
          end

          def humanized_input
            [input[:errata].join(", ")] + super
          end

          def resource_locks
            :link
          end

          def presenter
            Helpers::Presenter::Delegated.new(self, planned_actions(Pulp::Consumer::ContentInstall))
          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/install.rb
katello-2.4.4 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.3 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.2 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.1 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.0 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.0.rc3 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.0.rc2 app/lib/actions/katello/system/erratum/install.rb
katello-2.4.0.rc1 app/lib/actions/katello/system/erratum/install.rb