Sha256: 57eb29e44400dfc5b23d515112abe95b5406e6a9c2fe17faecd51f83b854a754

Contents?: true

Size: 948 Bytes

Versions: 42

Compression:

Stored size: 948 Bytes

Contents

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

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

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

          def rescue_strategy
            Dynflow::Action::Rescue::Skip
          end
        end
      end
    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
katello-3.9.1 app/lib/actions/katello/host/package/update.rb
katello-3.9.0 app/lib/actions/katello/host/package/update.rb
katello-3.8.1 app/lib/actions/katello/host/package/update.rb
katello-3.9.0.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.9.0.rc1 app/lib/actions/katello/host/package/update.rb
katello-3.7.1.1 app/lib/actions/katello/host/package/update.rb
katello-3.7.1 app/lib/actions/katello/host/package/update.rb
katello-3.8.0 app/lib/actions/katello/host/package/update.rb
katello-3.8.0.rc3 app/lib/actions/katello/host/package/update.rb
katello-3.8.0.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.7.0 app/lib/actions/katello/host/package/update.rb
katello-3.8.0.rc1 app/lib/actions/katello/host/package/update.rb
katello-3.7.0.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.7.0.rc1 app/lib/actions/katello/host/package/update.rb
katello-3.5.2 app/lib/actions/katello/host/package/update.rb
katello-3.6.0 app/lib/actions/katello/host/package/update.rb
katello-3.6.0.1.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.6.0.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.6.0.rc1 app/lib/actions/katello/host/package/update.rb
katello-3.5.1.1 app/lib/actions/katello/host/package/update.rb