Sha256: 37232441e3e764a35f2e832626fcaf9bd89708d49fd38af1861d68a219364cd9

Contents?: true

Size: 859 Bytes

Versions: 9

Compression:

Stored size: 859 Bytes

Contents

module Actions
  module Katello
    module System
      module Package
        class Update < Actions::EntryAction
          include Helpers::Presenter

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

            action_subject(system, :packages => packages)
            plan_action(Pulp::Consumer::ContentUpdate,
                        consumer_uuid: system.uuid,
                        type:          'rpm',
                        args:          packages)
          end

          def humanized_name
            _("Update package")
          end

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

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