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.5.1 app/lib/actions/katello/host/package/update.rb
katello-3.5.0.1 app/lib/actions/katello/host/package/update.rb
katello-3.5.0 app/lib/actions/katello/host/package/update.rb
katello-3.5.0.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.5.0.rc1 app/lib/actions/katello/host/package/update.rb
katello-3.4.5 app/lib/actions/katello/host/package/update.rb
katello-3.4.4 app/lib/actions/katello/host/package/update.rb
katello-3.4.2 app/lib/actions/katello/host/package/update.rb
katello-3.4.1 app/lib/actions/katello/host/package/update.rb
katello-3.4.0.2 app/lib/actions/katello/host/package/update.rb
katello-3.4.0.1 app/lib/actions/katello/host/package/update.rb
katello-3.3.2 app/lib/actions/katello/host/package/update.rb
katello-3.4.0 app/lib/actions/katello/host/package/update.rb
katello-3.4.0.rc2 app/lib/actions/katello/host/package/update.rb
katello-3.4.0.rc1 app/lib/actions/katello/host/package/update.rb
katello-3.3.1.1 app/lib/actions/katello/host/package/update.rb
katello-3.3.1 app/lib/actions/katello/host/package/update.rb
katello-3.3.0.1 app/lib/actions/katello/host/package/update.rb
katello-3.3.0 app/lib/actions/katello/host/package/update.rb
katello-3.3.0.rc2 app/lib/actions/katello/host/package/update.rb