Sha256: 174e51baa9ddd141152d326e258045f310f469aa48ab4a55ea657e833d42f3ba

Contents?: true

Size: 865 Bytes

Versions: 20

Compression:

Stored size: 865 Bytes

Contents

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

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

            action_subject(host, :packages => packages)
            plan_action(Pulp::Consumer::ContentInstall,
                        consumer_uuid: host.content_facet.uuid,
                        type:          'rpm',
                        args:          packages)
          end

          def humanized_name
            _("Install package")
          end

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

          def presenter
            Helpers::Presenter::Delegated.new(self, planned_actions(Pulp::Consumer::ContentInstall))
          end
        end
      end
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
katello-3.2.1.1 app/lib/actions/katello/host/package/install.rb
katello-3.2.1 app/lib/actions/katello/host/package/install.rb
katello-3.2.0 app/lib/actions/katello/host/package/install.rb
katello-3.2.0.rc3 app/lib/actions/katello/host/package/install.rb
katello-3.2.0.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.2.0.rc1.1 app/lib/actions/katello/host/package/install.rb
katello-3.2.0.rc1 app/lib/actions/katello/host/package/install.rb
katello-3.1.0.1 app/lib/actions/katello/host/package/install.rb
katello-3.1.0 app/lib/actions/katello/host/package/install.rb
katello-3.1.0.rc2.1 app/lib/actions/katello/host/package/install.rb
katello-3.0.2 app/lib/actions/katello/host/package/install.rb
katello-3.1.0.rc1 app/lib/actions/katello/host/package/install.rb
katello-3.0.1 app/lib/actions/katello/host/package/install.rb
katello-3.0.0 app/lib/actions/katello/host/package/install.rb
katello-3.0.0.rc7 app/lib/actions/katello/host/package/install.rb
katello-3.0.0.rc5 app/lib/actions/katello/host/package/install.rb
katello-3.0.0.rc4 app/lib/actions/katello/host/package/install.rb
katello-3.0.0.rc3 app/lib/actions/katello/host/package/install.rb
katello-3.0.0.rc2 app/lib/actions/katello/host/package/install.rb
katello-3.0.0.rc1 app/lib/actions/katello/host/package/install.rb