Sha256: 05153714264389d9cf8d3e5e107074e214572a225893b2f7b6d02449435f401c

Contents?: true

Size: 933 Bytes

Versions: 28

Compression:

Stored size: 933 Bytes

Contents

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

          def plan(host, errata_ids)
            Type! host, ::Host::Managed

            action_subject(host, :errata => errata_ids)
            plan_action(Pulp::Consumer::ContentInstall,
                        consumer_uuid: host.content_facet.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

28 entries across 28 versions & 1 rubygems

Version Path
katello-3.3.2 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.1.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.0.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.0 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.0.rc2 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.0.rc1.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.3.0.rc1 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.1.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.0 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.0.rc3 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.0.rc2 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.2.0.rc1 app/lib/actions/katello/host/erratum/install.rb
katello-3.1.0.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.1.0 app/lib/actions/katello/host/erratum/install.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/host/erratum/install.rb
katello-3.0.2 app/lib/actions/katello/host/erratum/install.rb
katello-3.1.0.rc1 app/lib/actions/katello/host/erratum/install.rb